AWS S3 REST API との互換性状況をまとめます。
本プロジェクトの位置づけ: 実運用向けではなく、AWS SDK を使った開発時のローカルダミー S3 として利用することを目的としています。
| public static class ReactiveSignalR | |
| { | |
| public static IObservable<T> CreateObservable<T>(string uri, string methodName, TimeSpan retryInterval) | |
| { | |
| return Observable.Create<T>(observer => | |
| { | |
| var connection = new HubConnectionBuilder() | |
| .WithUrl(uri) | |
| .WithAutomaticReconnect(new FixedIntervalRetryPolicy(retryInterval)) | |
| .Build(); |
| using Microsoft.ML; | |
| using Microsoft.ML.Data; | |
| using Microsoft.ML.Trainers; | |
| using SkiaSharp; | |
| public record ColorCount( | |
| byte R, | |
| byte G, | |
| byte B, |
| using Microsoft.ML.OnnxRuntime; | |
| using Microsoft.ML.OnnxRuntime.Tensors; | |
| using SkiaSharp; | |
| public record DetectResult( | |
| float Left, | |
| float Top, | |
| float Right, | |
| float Bottom, |
| public static class IncrementalGeneratorInitializationContextExtensions | |
| { | |
| public static IncrementalValuesProvider<T> ForAttributeWithMetadataNameWithOptions<T>( | |
| this IncrementalGeneratorInitializationContext context, | |
| string fullyQualifiedMetadataName, | |
| Func<SyntaxNode, CancellationToken, bool> predicate, | |
| Func<GeneratorAttributeSyntaxContext, AnalyzerConfigOptions, CancellationToken, T> transform) | |
| { | |
| var syntaxContext = context.SyntaxProvider.ForAttributeWithMetadataName( | |
| fullyQualifiedMetadataName, |
| using Microsoft.Extensions.DependencyInjection; | |
| public sealed class KeyedServiceProxy<T> | |
| where T : notnull | |
| { | |
| private readonly IServiceProvider serviceProvider; | |
| public KeyedServiceProxy(IServiceProvider serviceProvider) | |
| { | |
| this.serviceProvider = serviceProvider; |
| Directory.SetCurrentDirectory(AppContext.BaseDirectory); | |
| var host = Host.CreateDefaultBuilder(args) | |
| .UseWindowsService() | |
| .UseSystemd() | |
| .ConfigureLogging(config => | |
| { | |
| config.ClearProviders(); | |
| }) | |
| .ConfigureServices((context, services) => |
| namespace CallBenchmark; | |
| using BenchmarkDotNet.Attributes; | |
| using BenchmarkDotNet.Columns; | |
| using BenchmarkDotNet.Configs; | |
| using BenchmarkDotNet.Diagnosers; | |
| using BenchmarkDotNet.Exporters; | |
| using BenchmarkDotNet.Jobs; | |
| using BenchmarkDotNet.Running; |
| var builder = WebApplication.CreateBuilder(args); | |
| builder.WebHost.UseKestrel(options => | |
| { | |
| options.ListenLocalhost(9999, config => | |
| { | |
| config.UseConnectionHandler<MyConnectionHandler>(); | |
| }); | |
| }); | |
| var app = builder.Build(); |
| <Project Sdk="Microsoft.NET.Sdk"> | |
| <PropertyGroup> | |
| <OutputType>Exe</OutputType> | |
| <TargetFramework>net7.0</TargetFramework> | |
| <ImplicitUsings>enable</ImplicitUsings> | |
| <Nullable>enable</Nullable> | |
| </PropertyGroup> | |
| <ItemGroup> |