Google Chrome version - 97.0.4692.99-1
base position - 938553
websites:
// Orleans Credentials Cache - Single File Application | |
// This demonstrates a complete Orleans multi-tenant credentials cache application in a single .cs file | |
// | |
// To run: dotnet run orleans-cache.cs | |
// To publish as single-file executable: dotnet publish -c Release -r win-x64 -p:PublishSingleFile=true | |
// | |
// This single file contains: | |
// - Orleans host configuration | |
// - Grain interfaces and implementations | |
// - Azure.Identity integration with built-in caching |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Logging; | |
using Aspire.Hosting; | |
#pragma warning disable ASPIREINTERACTION001 // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed. | |
var builder = DistributedApplication.CreateBuilder(args); | |
var apiService = builder.AddProject<Projects.lcnc_aspire_demo_ApiService>("apiservice") | |
.WithHttpHealthCheck("/health") |
using System.Text.Json; | |
using System.Text.Json.Serialization; | |
using Microsoft.CodeAnalysis; | |
using Microsoft.CodeAnalysis.CSharp; | |
using Microsoft.CodeAnalysis.CSharp.Syntax; | |
namespace dotnet_ideas; | |
public class Program | |
{ |
using System.CodeDom.Compiler; | |
using System.Text; | |
using System.Text.Json; | |
using Json.Schema; | |
var rawSchemaJson = await File.ReadAllTextAsync("yamlschema.json"); | |
var jsonSchema = JsonSerializer.Deserialize<JsonSchema>(rawSchemaJson) ?? throw new InvalidOperationException("Failed to deserialize schema"); | |
var definitions = jsonSchema.GetDefinitions() ?? throw new InvalidOperationException("Failed to get definitions"); | |
var taskDefinition = definitions["task"]!; |
using System.Text; | |
using Microsoft.CodeAnalysis; | |
using Microsoft.CodeAnalysis.CSharp.Syntax; | |
namespace dotnet_analyzer_ideas; | |
[Generator] | |
public class EnumsSourceGenerator : ISourceGenerator | |
{ |
function download-docker-image { | |
param( | |
[Parameter(Mandatory=$true)] | |
[string]$image, | |
[Parameter(Mandatory=$true)] | |
[string]$tag, | |
[Parameter(Mandatory=$true)] | |
[string]$output |
param( | |
[Parameter(Mandatory = $true)] | |
[string]$ImageName, | |
[string]$Tag = 'latest', | |
[ValidateSet( | |
'DockerIO', | |
'Microsoft' | |
)] | |
[string]$Registry = 'DockerIO' | |
) |
FROM mcr.microsoft.com/dotnet/sdk:6.0-focal | |
ARG PLAYWRIGHT_VERSION | |
# === INSTALL dependencies === | |
RUN apt-get update && \ | |
# Feature-parity with node.js base images. | |
apt-get install -y --no-install-recommends git openssh-client curl && \ | |
# clean apt cache |
Google Chrome version - 97.0.4692.99-1
base position - 938553
websites:
{ | |
"name": "hello-world", | |
"version": "0.1.0", | |
"lockfileVersion": 2, | |
"requires": true, | |
"packages": { | |
"": { | |
"name": "hello-world", | |
"version": "0.1.0", | |
"dependencies": { |