public void Configure( IApplicationBuilder app, IHostEnvironment env, IPageConfiguration pageConfiguration, ILanguageManipulationService languageManipulationService, IEndpointsBuilder endpointsBuilder) { app.UseStatusCodePagesWithReExecute("/errors/{0}"); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseStaticFiles(); var defaultCulture = languageManipulationService .LanguageDefinitionToCultureInfo( pageConfiguration.DefaultLanguage ); app.UseRequestLocalization(new RequestLocalizationOptions { SupportedCultures = languageManipulationService.SupportedCultures, SupportedUICultures = languageManipulationService.SupportedCultures, RequestCultureProviders = new IRequestCultureProvider[] { new CustomUrlStringCultureProvider(languageManipulationService) }, DefaultRequestCulture = new RequestCulture(defaultCulture, defaultCulture) } ); app.UseRouting(); app.UseAuthentication(); app.UseAuthorization(); app.UseEndpoints(endpointsBuilder.Build); }
public DispatcherEndpointsBuilder(IEndpointsBuilder builder) { _builder = builder; }
public EndpointBuilderIntegrationTests() { _endpointsBuilder = A.Fake <IEndpointsBuilder>(); _systemUnderTest = new MediatREndpointWithDtoBuilder(_endpointsBuilder); }
public static IDispatcherEndpointsBuilder Dispatch(this IEndpointsBuilder endpoints, Func <IDispatcherEndpointsBuilder, IDispatcherEndpointsBuilder> builder) => builder(new DispatcherEndpointsBuilder(endpoints));
public MediatREndpointWithDtoBuilder(IEndpointsBuilder builder) { _builder = builder; }
public ExtendedDispatcherEndpointsBuilder(IEndpointsBuilder builder) : base(builder) { _builder = builder; }
public MediatrEndpointsBuilderTests() { _endpointsBuilder = A.Fake <IEndpointsBuilder>(); _systemUnderTest = new MediatrEndpointsBuilder(_endpointsBuilder); }
public MediatrEndpointsBuilder(IEndpointsBuilder endpointsBuilder) { _builder = endpointsBuilder; }