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 Microsoft.AspNetCore.Authentication; | |
using Microsoft.AspNetCore.Authentication.JwtBearer; | |
using Microsoft.Identity.Web; | |
using Microsoft.OpenApi.Models; | |
var builder = WebApplication.CreateBuilder(args); | |
// Add services to the container. | |
builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme) | |
.AddMicrosoftIdentityWebApi(builder.Configuration.GetSection("AzureAd")).EnableTokenAcquisitionToCallDownstreamApi() |
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 Microsoft.AspNetCore.Authentication.JwtBearer; | |
using Microsoft.Identity.Web; | |
using Microsoft.OpenApi.Models; | |
var builder = WebApplication.CreateBuilder(args); | |
// Add services to the container. | |
builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme) | |
.AddMicrosoftIdentityWebApi(builder.Configuration.GetSection("AzureAd")).EnableTokenAcquisitionToCallDownstreamApi() | |
.AddMicrosoftGraph(builder.Configuration.GetSection("MicrosoftGraph")) |
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
static async void Main(string[] args) | |
{ | |
Func<Task> startupDone = async () => | |
{ | |
await Task.CompletedTask; | |
}; | |
var taskHere = startupDone.Invoke(); | |
var runTask = DoStuff(() => | |
{ |
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
IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'DropLockInstance') | |
BEGIN | |
DROP PROCEDURE locking.DropLockInstance | |
END | |
GO | |
CREATE PROCEDURE locking.DropLockInstance | |
@lockValue varchar(150), | |
@scope varchar(50), | |
@system varchar(50), |
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 static class DbContextHelper | |
{ | |
public static List<T> SqlQueryList<T>(this DatabaseFacade database, string query, Func<Dictionary<string, object>, T> conversionFunction, params SqlParameter[] sqlParameters) | |
{ | |
var conn = database.GetDbConnection(); | |
conn.Open(); | |
var command = conn.CreateCommand(); | |
command.CommandText = query; | |
command.Parameters.AddRange(sqlParameters); | |
var reader = command.ExecuteReader(); |
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
<template> | |
<require from="navbar"></require> | |
<nav-bar router.bind="router"></nav-bar> | |
<div class="page-host"> | |
<router-view></router-view> |
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
<template> | |
<h1>${message}</h1> | |
<select> | |
<option repeat.for="option of options" model.bind="option">${option.value}</option> | |
</select> | |
</template> |
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
<template> | |
<h1>${message}</h1> | |
</template> |
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
Error event: SourceId='System.FM', Property='State'. | |
Partition is in quorum loss. | |
UpgradeOrchestrationService 3 3 00000000-0000-0000-0000-000000006000 | |
S/P RD ClusterNode2 Up 131414258329718880 | |
S/S IB ClusterNode1 Down 131414258623460374 | |
P/S RD ClusterNode3 Down 131414258623460375 | |
(Showing 3 out of 3 replicas. Total available replicas: 1.) |
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
{ | |
"license": "MIT", | |
"devDependencies": { | |
"@types/jest": "^19.2.2", | |
"@types/whatwg-fetch": "^0.0.33", | |
"aurelia-loader-nodejs": "^1.0.1", | |
"aurelia-pal-nodejs": "^1.0.0-beta.1.0.0", | |
"aurelia-tools": "^1.0.0", | |
"aurelia-webpack-plugin": "^2.0.0-rc.1", | |
"chai": "^3.5.0", |
NewerOlder