lang
async
async/await
asynclocal
awaiter
calcellation
channels
configure-await
continuations
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 TimeAxisCalculator | |
{ | |
private static readonly TimeSpan[] CandidateValues = | |
{ | |
TimeSpan.FromMinutes(1), | |
TimeSpan.FromMinutes(2), | |
TimeSpan.FromMinutes(5), | |
TimeSpan.FromMinutes(10), | |
TimeSpan.FromMinutes(15), | |
TimeSpan.FromMinutes(30), |
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 interface ISectionCallback | |
{ | |
void SetMenu(RenderFragment value); | |
} |
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 sealed class LoadingOverlay : WindowOverlay | |
{ | |
public LoadingOverlay(IWindow window) | |
: base(window) | |
{ | |
AddWindowElement(new LoadingElementOverlay()); | |
EnableDrawableTouchHandling = true; | |
} | |
private class LoadingElementOverlay : IWindowOverlayElement |
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
<CascadingAuthenticationState> | |
<Router AppAssembly="@typeof(App).Assembly"> | |
<Found Context="routeData"> | |
<ExtendedErrorBoundary @ref="errorBoundary"> | |
<ChildContent> | |
<ExtendedAuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" NotAuthorizedLayout="@typeof(ErrorLayout)"> | |
<NotAuthorized> | |
@if (context.User.Identity?.IsAuthenticated != true) | |
{ | |
<Server.Pages.Login Reload="true" /> |
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
<ItemGroup> | |
<Resource Include="App.ico" /> | |
</ItemGroup> | |
<ItemGroup> | |
<Content Include="appsettings.json"> | |
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | |
</Content> | |
<Content Include="appsettings.*.json"> | |
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
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
@page "/" | |
<button class="btn btn-primary" @onclick="OnExecuteClock">Execute</button> | |
@code { | |
[CascadingParameter] | |
[AllowNull] | |
public ProgressState Progress { get; set; } | |
private async Task OnExecuteClock() |
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
const aws = require('aws-sdk'); | |
const lambda = new aws.Lambda({ | |
maxRetries: 10, | |
retryDelayOptions: { | |
base: 1000 | |
} | |
}); | |
const targets = process.env.TARGETS.split(','); | |
const warmer = process.env.AWS_LAMBDA_FUNCTION_NAME; |
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
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | |
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ArrangeTrailingCommaInMultilineLists/@EntryIndexedValue">SUGGESTION</s:String> | |
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ArrangeTrailingCommaInSinglelineLists/@EntryIndexedValue">SUGGESTION</s:String> | |
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ArrangeTypeMemberModifiers/@EntryIndexedValue">SUGGESTION</s:String> | |
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ArrangeTypeModifiers/@EntryIndexedValue">SUGGESTION</s:String> | |
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=BuiltInTypeReferenceStyle/@EntryIndexedValue">SUGGESTION</s:String> | |
< |
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
namespace ComponentManagement | |
{ | |
using System; | |
using Microsoft.Extensions.DependencyInjection; | |
public static class Program | |
{ | |
public static void Main(string[] args) | |
{ |