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
| [CmdletBinding(SupportsShouldProcess = $true)] | |
| [OutputType([System.Object[]])] | |
| param( | |
| [Parameter(Position=0, ValueFromPipeline)] | |
| [ValidateNotNullOrEmpty()] | |
| [string] | |
| $LiteralPath = (Join-Path -Path $PSScriptRoot -ChildPath '.env'), | |
| [Parameter()] | |
| [switch] |
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
| FROM ubuntu:18.04 | |
| # Install wget | |
| RUN apt-get update | |
| RUN apt-get install -y wget | |
| # Add 32-bit architecture | |
| RUN dpkg --add-architecture i386 | |
| RUN apt-get update |
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 RevalidatingAuthenticationStateProvider : AuthenticationStateProvider, IDisposable | |
| { | |
| private static TimeSpan RefreshInterval = TimeSpan.FromMinutes(30); | |
| private readonly CancellationTokenSource _cts; | |
| private ClaimsPrincipal _currentUser; | |
| public RevalidatingAuthenticationStateProvider(SignInManager<IdentityUser> signInManager) | |
| { | |
| _cts = new CancellationTokenSource(); |
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
| /* | |
| To Compile: | |
| PATH\\TO\\jsc.exe QueryDotnet.js | |
| This example is based on: | |
| https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed | |
| */ | |
| import System; | |
| import Microsoft.Win32; |