This file contains 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 Microsoft.AspNetCore.Authentication; | |
// Configure() | |
app.Use(async (context, next) => | |
{ | |
if (!context.User.Identity.IsAuthenticated) | |
{ | |
await context.ChallengeAsync(); | |
} |
This file contains 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.IO; | |
using System.Text; | |
using Microsoft.Azure.Cosmos; | |
using Newtonsoft.Json; | |
namespace Application1 | |
{ | |
public class CosmosJsonNetSerializer : CosmosSerializer | |
{ | |
private static readonly Encoding DefaultEncoding = new UTF8Encoding(false, true); |
This file contains 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
// Encapsulated | |
// <my-webcomponent shadow></my-webcomponent> | |
// Inherits page styles | |
// <my-webcomponent></my-webcomponent> | |
class MyWebComponent extends HTMLElement { | |
constructor() { | |
let self = super(); |