.Net Core 3
stackoverflow.com services.AddSingleton<IHostedService>(provider => new IntegrationService("Test")); Thanks!</ihostedservice>
shuhelohelo.hatenablog.com services.AddControllers().AddNewtonsoftJson(settings => settings.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore);Thanks!
.Net Core 3.x で作成していると以下のエラーが発生。 Newtonsoft.Json.JsonSerializationException: 'Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Nullable`1[xxxx]' Nullableの内容を含むApiのレスポンスがHas…
github.comgithub.comThanks!
NetFrameworkとNetCoreのマルチターゲット時に、NetFrameworkビルド時にのみ参照させてる設定 <ItemGroup Condition="'$(TargetFramework)' == 'net45'"> <Reference Include="System.ComponentModel.DataAnnotations" /> </ItemGroup> stackoverflow.comThansk!
#if DEBUG // 以下、LoggerFactory の構築方法が v.2.x 以前と異なる。 var loggerFactory = LoggerFactory.Create(builder => { builder.AddFilter( category: DbLoggerCategory.Database.Command.Name, level: LogLevel.Debug); }); var option = new DbCo…
Core 2.2 から3.0へ変更した際にUpload Api(multipart)で発生した対応諸々stackoverflow.com www.cnblogs.com stackoverflow.comThanks!
github.comSwaggerを変えてみるThanks
medium.comstackoverflow.comThanks!
wakeupandcode.comlevelup.gitconnected.comdocs.microsoft.comwakeupandcode.comリンクに記載の通り、WorkerServiceのログは以下のようにしないとイベントログに登録されません。 appsettings.json { "Logging": { "LogLevel": { "Default": "Information",…
Inside FastEnum from Takaaki Suzuki www.slideshare.net 今日からできる!簡単 .NET 高速化 Tips from Takaaki Suzuki www.slideshare.net .NET の今と今後に思うこと (Tokyo Ver.) from Akira Inoue www.slideshare.net CEDEC 2018 最速のC#の書き方 - C#…