public LookupApplicationService
 (
     ILookupService lookupService,
     BedrockConfiguration bedrockConfiguration
 ) : base(bedrockConfiguration, lookupService)
 {
 }
예제 #2
0
        public ClaimCollectorFactoryBase(ICacheProvider cache, BedrockConfiguration bedrockConfiguration)
        {
            BedrockConfiguration = bedrockConfiguration;

            Cache = cache;
            Cache.SetCacheType(BedrockConfiguration.Security.Application.ClaimCollection.CacheType);
        }
예제 #3
0
        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());
        }
예제 #4
0
        public ServiceBaseDomain(BedrockConfiguration bedrockConfiguration, params ISessionAware[] sessionAwareDependencies) : base(sessionAwareDependencies)
        {
            BedrockConfiguration = bedrockConfiguration;

            SetContexts(sessionAwareDependencies);
            SetEventDispatcher(sessionAwareDependencies);
        }
예제 #5
0
 public LookupService
 (
     ITemplateContext context,
     BedrockConfiguration bedrockConfiguration
 )
     : base(bedrockConfiguration, context)
 {
 }
예제 #6
0
 public ClaimCollector
 (
     ISharedSecurityClientAdmin sharedSecurityClientAdmin,
     ISession session,
     BedrockConfiguration bedrockConfiguration
 ) : base(bedrockConfiguration)
 {
     SharedSecurityClientAdmin = sharedSecurityClientAdmin;
 }
 public ApplicationService
 (
     ILogService logService,
     BedrockConfiguration bedrockConfiguration
 ) : base
     (
         bedrockConfiguration,
         logService
     )
 {
 }
예제 #8
0
        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
     )
 {
 }
예제 #10
0
 public ClaimCollectorFactory
 (
     ISharedSecurityClientAdmin sharedSecurityClientAdmin,
     ISession session,
     ICacheProvider cache,
     BedrockConfiguration bedrockConfiguration
 ) : base
     (
         cache, bedrockConfiguration
     )
 {
     SharedSecurityClientAdmin = sharedSecurityClientAdmin;
     Session = session;
 }
예제 #11
0
        public void GlobalSetup()
        {
            if (BedrockConfiguration != null)
            {
                return;
            }

            var builder = new WebHostBuilder()
                          .UseStartup <Startup>();

            TestServer = new TestServer(builder);
            TestClient = TestServer.CreateClient();

            BedrockConfiguration = Startup.BedrockConfiguration;
        }
예제 #12
0
 public EfCoreFilteredLogger(BedrockConfiguration bedrockConfiguration, SharedInterface.ILogger internalLogger = null)
 {
     BedrockConfiguration = bedrockConfiguration;
     _internalLogger      = internalLogger;
 }
예제 #13
0
 public ServiceBaseApplication(BedrockConfiguration bedrockConfiguration, params ISessionAware[] sessionAwareDependencies) : base(sessionAwareDependencies)
 {
     BedrockConfiguration = bedrockConfiguration;
 }
예제 #14
0
 public CacheProvider(ICache[] cachers, BedrockConfiguration bedrockConfiguration) : this(cachers, bedrockConfiguration.Cache.CacheType, bedrockConfiguration)
 {
 }
예제 #15
0
 public QueueProvider(IQueue[] queues, BedrockConfiguration bedrockConfiguration) : this(queues, bedrockConfiguration.Queue.QueueType)
 {
 }
예제 #16
0
 public CacheProvider(ICache[] cachers, CacheType cacheType, BedrockConfiguration bedrockConfiguration)
 {
     Initialize(cachers, cacheType, bedrockConfiguration);
 }
예제 #17
0
 public LoggerBase(BedrockConfiguration bedrockConfiguration)
 {
     BedrockConfiguration = bedrockConfiguration;
 }
예제 #18
0
 public BedrockContext(DbContextOptions options, IDomainEventDispatcher domainEventDispatcher, BedrockConfiguration bedrockConfiguration) : base(options, bedrockConfiguration)
 {
     Initialize(domainEventDispatcher);
 }
예제 #19
0
 public Hasher(BedrockConfiguration bedrockConfiguration) : base(bedrockConfiguration)
 {
 }
예제 #20
0
 private void Initialize(ICache[] cachers, CacheType cacheType, BedrockConfiguration bedrockConfiguration)
 {
     BedrockConfiguration = bedrockConfiguration;
     Cachers = cachers;
     SetCacheType(cacheType);
 }
예제 #21
0
 public BedrockContext(string connectionString, IDomainEventDispatcher domainEventDispatcher, BedrockConfiguration bedrockConfiguration) : base(connectionString, bedrockConfiguration)
 {
     Initialize(domainEventDispatcher);
 }
예제 #22
0
 public EntityFrameworkDataContext(string connectionString, BedrockConfiguration bedrockConfiguration)
 {
     ConnectionString     = connectionString;
     BedrockConfiguration = bedrockConfiguration;
     Initialize();
 }
예제 #23
0
 public QueueBase(BedrockConfiguration bedrockConfiguration)
 {
     BedrockConfiguration = bedrockConfiguration;
 }
예제 #24
0
 public RepositoryIdBase(BedrockConfiguration bedrockConfiguration) : base(bedrockConfiguration)
 {
 }
 public EntityFrameworkRepository(BedrockConfiguration bedrockConfiguration) : base(bedrockConfiguration)
 {
 }
 public ClaimCollectorBase(BedrockConfiguration bedrockConfiguration)
 {
     BedrockConfiguration = bedrockConfiguration;
 }
예제 #27
0
 public EntityFrameworkDataContext(BedrockConfiguration bedrockConfiguration)
 {
     BedrockConfiguration = bedrockConfiguration;
     Initialize();
 }
 public ServiceBaseDomainValidation(BedrockConfiguration bedrockConfiguration, params ISessionAware[] sessionAwareDependencies) : base(bedrockConfiguration, sessionAwareDependencies)
 {
 }
예제 #29
0
 public EntityFrameworkDataContext(DbContextOptions options, BedrockConfiguration bedrockConfiguration) : base(options)
 {
     IsInMemoryOptionsExtension = options.Extensions.FirstOrDefault(e => e.GetType().Name == "InMemoryOptionsExtension") != null;
     BedrockConfiguration       = bedrockConfiguration;
     Initialize();
 }
예제 #30
0
 public BedrockContext(IDomainEventDispatcher domainEventDispatcher, BedrockConfiguration bedrockConfiguration) : base(bedrockConfiguration)
 {
     Initialize(domainEventDispatcher);
 }