This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| JsonSerializerOptions jsonSerializerOptions = new JsonSerializerOptions() | |
| { | |
| DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull | |
| }; | |
| CosmosSystemTextJsonSerializer cosmosSystemTextJsonSerializer = new CosmosSystemTextJsonSerializer(jsonSerializerOptions); | |
| CosmosClientOptions cosmosClientOptions = new CosmosClientOptions() | |
| { | |
| ApplicationName = "Test", | |
| Serializer = cosmosSystemTextJsonSerializer | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class CosmosSystemTextJsonSerializer : CosmosSerializer | |
| { | |
| private readonly JsonObjectSerializer systemTextJsonSerializer; | |
| public CosmosSystemTextJsonSerializer(JsonSerializerOptions jsonSerializerOptions) | |
| { | |
| this.systemTextJsonSerializer = new JsonObjectSerializer(jsonSerializerOptions); | |
| } | |
| public override T FromStream<T>(Stream stream) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param( | |
| [Parameter(Mandatory = $true)] | |
| [string]$clientID, | |
| [Parameter(Mandatory = $true)] | |
| [string]$clientSecret, | |
| [Parameter(Mandatory = $true)] | |
| [string]$tenantId, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param( | |
| [string]$storageAccount, | |
| [string]$blobContainer, | |
| [string]$instanceName, | |
| [string]$databaseName, | |
| [string]$storageKey | |
| ) | |
| import-module sqlps; | |
| $sqlPath = "sqlserver:\sql\$($env:COMPUTERNAME)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| syntax = "proto3" | |
| import "google/protobuf/duration.proto"; | |
| import "google/protobuf/timestamp.proto"; | |
| import "google/protobuf/wrappers.proto" | |
| message Meeting { | |
| google.protobuf.StringValue subject = 1; | |
| google.protobuf.Timestamp time = 2; | |
| google.protobuf.Duration duration = 3; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| syntax = "proto3" | |
| message Something { | |
| string subject = 1; | |
| int32 id = 2; | |
| float floatVar = 3; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "Flag": "https://www.geonames.org/flags/x/ad.gif", | |
| "CountryName": "Andorra", | |
| "Currency": "Euro Member Countries", | |
| "Code": "EUR", | |
| "Symbol": "\u20AC", | |
| "SymbolImage": "https://www.xe.com/symbols-page/symbols/curSymbol8364.gif" | |
| }, | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "name": "Andorra", | |
| "countryCode": "AD", | |
| "countryCodeAlpha3": "AND", | |
| "phone": "376", | |
| "currency": "EUR", | |
| "flag": "https://www.geonames.org/flags/x/ad.gif", | |
| "symbol": "\u20AC", | |
| "stateProvinces": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Text.Json; | |
| using System.Text.Json.Serialization; | |
| using RestSharp; | |
| public class Body | |
| { | |
| [JsonPropertyName("contentType")] | |
| public string ContentType { get; set; } | |
| [JsonPropertyName("content")] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <policies> | |
| <inbound> | |
| <base /> | |
| <validate-jwt header-name="Authorization" failed-validation-httpcode="401" failed-validation-error-message="Unauthorized. Access token is missing or invalid." require-scheme="Bearer" output-token-variable-name="jwt"> | |
| <openid-config url="B2c Run URL" /> | |
| <audiences> | |
| <audience>{Application ID}</audience> | |
| </audiences> | |
| <issuers> | |
| <issuer>{Issuer}</issuer> |