public LookupApplicationService ( ILookupService lookupService, BedrockConfiguration bedrockConfiguration ) : base(bedrockConfiguration, lookupService) { }
public ClaimCollectorFactoryBase(ICacheProvider cache, BedrockConfiguration bedrockConfiguration) { BedrockConfiguration = bedrockConfiguration; Cache = cache; Cache.SetCacheType(BedrockConfiguration.Security.Application.ClaimCollection.CacheType); }
public void Configure ( IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, SharedInterface.ILogger logger, IApplicationLifetime appLifetime, IApiVersionDescriptionProvider provider, BedrockConfiguration bedrockConfiguration ) { AddLogging(loggerFactory, logger); app.UseHttpException(); app.UseCors("CorsPolicy"); if (IsAuthenticationEnabled) { app.UseAuthentication(); app.UseMiddleware <SetUserMiddleware>(new PostAuthenticationMiddlewareOptions(new ClaimTypeAad())); } app.UseMvc(routes => { routes.MapRoute( name: "default", template: "{controller=Home}/{action=Index}/{id?}"); }); AddSwaggerGen(app, provider); appLifetime.ApplicationStopped.Register(() => ApplicationContainer.Dispose()); }
public ServiceBaseDomain(BedrockConfiguration bedrockConfiguration, params ISessionAware[] sessionAwareDependencies) : base(sessionAwareDependencies) { BedrockConfiguration = bedrockConfiguration; SetContexts(sessionAwareDependencies); SetEventDispatcher(sessionAwareDependencies); }
public LookupService ( ITemplateContext context, BedrockConfiguration bedrockConfiguration ) : base(bedrockConfiguration, context) { }
public ClaimCollector ( ISharedSecurityClientAdmin sharedSecurityClientAdmin, ISession session, BedrockConfiguration bedrockConfiguration ) : base(bedrockConfiguration) { SharedSecurityClientAdmin = sharedSecurityClientAdmin; }
public ApplicationService ( ILogService logService, BedrockConfiguration bedrockConfiguration ) : base ( bedrockConfiguration, logService ) { }
public void ConfigureServices(IServiceCollection services) { BedrockConfiguration = services.ConfigurePoco <BedrockConfiguration>(Configuration.GetSection("BedrockConfig")); services .AddMvc() .AddApplicationPart(System.Reflection.Assembly.GetExecutingAssembly()) .AddJsonOptions(options => { options.SerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore; options.SerializerSettings.ContractResolver = new DefaultContractResolver(); }); }
public BedrockResourceAuthorizationManager ( IClaimType claimType, IClaimCollectorFactory claimCollectorFactory, BedrockConfiguration bedrockConfiguration ) : base ( claimType, claimCollectorFactory, bedrockConfiguration ) { }
public ClaimCollectorFactory ( ISharedSecurityClientAdmin sharedSecurityClientAdmin, ISession session, ICacheProvider cache, BedrockConfiguration bedrockConfiguration ) : base ( cache, bedrockConfiguration ) { SharedSecurityClientAdmin = sharedSecurityClientAdmin; Session = session; }
public void GlobalSetup() { if (BedrockConfiguration != null) { return; } var builder = new WebHostBuilder() .UseStartup <Startup>(); TestServer = new TestServer(builder); TestClient = TestServer.CreateClient(); BedrockConfiguration = Startup.BedrockConfiguration; }
public EfCoreFilteredLogger(BedrockConfiguration bedrockConfiguration, SharedInterface.ILogger internalLogger = null) { BedrockConfiguration = bedrockConfiguration; _internalLogger = internalLogger; }
public ServiceBaseApplication(BedrockConfiguration bedrockConfiguration, params ISessionAware[] sessionAwareDependencies) : base(sessionAwareDependencies) { BedrockConfiguration = bedrockConfiguration; }
public CacheProvider(ICache[] cachers, BedrockConfiguration bedrockConfiguration) : this(cachers, bedrockConfiguration.Cache.CacheType, bedrockConfiguration) { }
public QueueProvider(IQueue[] queues, BedrockConfiguration bedrockConfiguration) : this(queues, bedrockConfiguration.Queue.QueueType) { }
public CacheProvider(ICache[] cachers, CacheType cacheType, BedrockConfiguration bedrockConfiguration) { Initialize(cachers, cacheType, bedrockConfiguration); }
public LoggerBase(BedrockConfiguration bedrockConfiguration) { BedrockConfiguration = bedrockConfiguration; }
public BedrockContext(DbContextOptions options, IDomainEventDispatcher domainEventDispatcher, BedrockConfiguration bedrockConfiguration) : base(options, bedrockConfiguration) { Initialize(domainEventDispatcher); }
public Hasher(BedrockConfiguration bedrockConfiguration) : base(bedrockConfiguration) { }
private void Initialize(ICache[] cachers, CacheType cacheType, BedrockConfiguration bedrockConfiguration) { BedrockConfiguration = bedrockConfiguration; Cachers = cachers; SetCacheType(cacheType); }
public BedrockContext(string connectionString, IDomainEventDispatcher domainEventDispatcher, BedrockConfiguration bedrockConfiguration) : base(connectionString, bedrockConfiguration) { Initialize(domainEventDispatcher); }
public EntityFrameworkDataContext(string connectionString, BedrockConfiguration bedrockConfiguration) { ConnectionString = connectionString; BedrockConfiguration = bedrockConfiguration; Initialize(); }
public QueueBase(BedrockConfiguration bedrockConfiguration) { BedrockConfiguration = bedrockConfiguration; }
public RepositoryIdBase(BedrockConfiguration bedrockConfiguration) : base(bedrockConfiguration) { }
public EntityFrameworkRepository(BedrockConfiguration bedrockConfiguration) : base(bedrockConfiguration) { }
public ClaimCollectorBase(BedrockConfiguration bedrockConfiguration) { BedrockConfiguration = bedrockConfiguration; }
public EntityFrameworkDataContext(BedrockConfiguration bedrockConfiguration) { BedrockConfiguration = bedrockConfiguration; Initialize(); }
public ServiceBaseDomainValidation(BedrockConfiguration bedrockConfiguration, params ISessionAware[] sessionAwareDependencies) : base(bedrockConfiguration, sessionAwareDependencies) { }
public EntityFrameworkDataContext(DbContextOptions options, BedrockConfiguration bedrockConfiguration) : base(options) { IsInMemoryOptionsExtension = options.Extensions.FirstOrDefault(e => e.GetType().Name == "InMemoryOptionsExtension") != null; BedrockConfiguration = bedrockConfiguration; Initialize(); }
public BedrockContext(IDomainEventDispatcher domainEventDispatcher, BedrockConfiguration bedrockConfiguration) : base(bedrockConfiguration) { Initialize(domainEventDispatcher); }