My name is Marcin and I'm a .NET developer π¨βπ» focused on back-ends π» and Azure βοΈ infrastructure.
marcin-burak
Follow
.NET π¨βπ» | Azure βοΈ
-
ecom.software
- Poland, ToruΕ
-
20:00
(UTC +02:00) - in/marcin-burak
- @marcin_burak
Block or Report
Block or report marcin-burak
Report abuse
Contact GitHub support about this userβs behavior. Learn more about reporting abuse.
Report abusePinned
-
-
-
ASP.NET options startup validation w...
ASP.NET options startup validation with FluentValidation 1public static class OptionsBuilderFluentValidationExtensions
2{
3public static OptionsBuilder<TOptions> ValidateWithFluentValidation<TOptions>(this OptionsBuilder<TOptions> optionsBuilder) where TOptions : class
4{
5optionsBuilder.Services.AddSingleton<IValidateOptions<TOptions>>(serviceProvider =>
-
Entity Framework database initializa...
Entity Framework database initialization on ASP.NET startup 1public sealed class DatabaseInitialization(IOptionsSnapshot<SqlServerOptions> sqlServerOptions, IWebHostEnvironment environment, DatabaseContext databaseContext)
2{
3private readonly IOptionsSnapshot<SqlServerOptions> _sqlServerOptions = sqlServerOptions;
4private readonly IWebHostEnvironment _environment = environment;
5private readonly DatabaseContext _databaseContext = databaseContext;
-
Hide server HTTP headers
Hide server HTTP headers 1<?xml version="1.0" encoding="utf-8"?>
2<configuration>
3<system.webServer>
4<security>
5<requestFiltering removeServerHeader="true" />
-
Minimal SQL Server docker compose
Minimal SQL Server docker compose 1version: '3.4'
23services:
4web:
5image: ${DOCKER_REGISTRY-}<PROJECT>
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.