public TenantService( ITenantRepository tenantRepository, ITenantFactory tenantFactory) { this.tenantRepository = tenantRepository; this.tenantFactory = tenantFactory; }
public ComponentService(ILogger <ComponentService> logger, ITenantRepository tenantRepository, IStorageHubService storageHubService, ITenantFactory tenantFactory) { _logger = logger; _tenantRepository = tenantRepository; _storageHubService = storageHubService; _tenantFactory = tenantFactory; }
public TenantsController(IConfiguration configuration, IWebHostEnvironment hostingEnvironment, ITenantFactory tenantFactory) : base(configuration, hostingEnvironment) { _tenantFactory = tenantFactory; }
public RepositoryBase(TDbContext db, IJsonConfig jsonConfig, ITenantFactory tenantFactory) { _jsonConfig = jsonConfig; _tenantFactory = tenantFactory; Db = db; This = db.Set <TEntity>(); SetPredicate(); }
public TenantMemoryRepository(ILogger <TenantMemoryRepository> logger, List <TenantConfiguration> tenantConfigurations, ITenantFactory tenantFactory) { this.logger = logger; this.tenantFactory = tenantFactory; _tenants = new ConcurrentDictionary <string, Tenant>(); AddTenantsFromConfiguration(tenantConfigurations); }
public ContextUtilities( ITenantFactory tenantFactory ) { //Contract.Requires<ArgumentNullException>(tenantFactory == null); if (tenantFactory == null) throw new ArgumentNullException("tenantFactory"); this.tenantFactory = tenantFactory; }
public MongoFactory(ITenantFactory tenantFactory, string clientId) { _tenantFactory = tenantFactory; var tenantProfile = AsyncHelper.RunSync(() => _tenantFactory.GetTenantByTenantIdAsync(clientId)); var mongoClient = new MongoContext(tenantProfile.GetMongoDBConnectionString(), tenantProfile.MongoDbDatabase); Database = mongoClient.Database; }
public ContextUtilities( ITenantFactory tenantFactory ) { //Contract.Requires<ArgumentNullException>(tenantFactory == null); if (tenantFactory == null) { throw new ArgumentNullException("tenantFactory"); } this.tenantFactory = tenantFactory; }
public ConsumerHub(ILogger <ConsumerHub> logger, IConsumerHubRepository consumerHubRepository, ITenantRepository tenantRepository, ITenantFactory tenantFactory, IConsumerFactory consumerFactory, IStorageHubService storageHubService) { this.logger = logger; this.consumerHubRepository = consumerHubRepository; this.tenantRepository = tenantRepository; this.tenantFactory = tenantFactory; this.consumerFactory = consumerFactory; this.storageHubService = storageHubService; }
public ProducerHub(ILogger <ProducerHub> logger, IProducerHubRepository producerHubRepository, ITenantRepository tenantRepository, ITenantFactory tenantFactory, IProducerFactory producerFactory, IStorageHubService storageHubService, IConsumerHubService consumerHubService) { this.logger = logger; this.producerHubRepository = producerHubRepository; this.tenantRepository = tenantRepository; this.tenantFactory = tenantFactory; this.producerFactory = producerFactory; this.storageHubService = storageHubService; this.consumerHubService = consumerHubService; }
public DataContext(IHttpContextAccessor httpContextAccessor) { _httpContextAccessor = httpContextAccessor; TenantFactory = new TenantFactory(_httpContextAccessor.HttpContext); }
public DataContext(ITenantFactory tenantFactory) { _tenantFactory = tenantFactory; AuditList = new List <DtoEntityAudit>(); }
public ProductService(ILogger <ProductService> logger, ITenantRepository tenantRepository, ITenantFactory tenantFactory) { _logger = logger; _tenantRepository = tenantRepository; _tenantFactory = tenantFactory; }
public AccountsController(IConfiguration configuration, IWebHostEnvironment hostingEnvironment, OAuthClient oAuthClient, ITenantFactory tenantFactory) : base(configuration, hostingEnvironment) { _oAuthClient = oAuthClient; _tenantFactory = tenantFactory; }
public DfTestContext(ITenantFactory tenantFactory, IJsonConfig jsonConfig) : base(tenantFactory) { _jsonConfig = jsonConfig; }
public TopicService(ILogger <TopicService> logger, ITenantRepository tenantRepository, ITenantFactory tenantFactory) { _logger = logger; _tenantRepository = tenantRepository; _tenantFactory = tenantFactory; }