コード例 #1
0
        public TenantControllerBase(AppTenant appTenant, IAppTenantDbContext appTenantContext, ICloudOfficeDbContext cloudOfficeContext)
        {
            if (appTenant == null)
            {
                throw new ArgumentNullException(nameof(appTenant));
            }
            if (appTenantContext == null)
            {
                throw new ArgumentNullException(nameof(appTenantContext));
            }
            if (cloudOfficeContext == null)
            {
                throw new ArgumentNullException(nameof(cloudOfficeContext));
            }

            _appTenantContext   = appTenantContext;
            _cloudOfficeContext = cloudOfficeContext;
            CurrentTenant       = appTenant;
        }
コード例 #2
0
 public RolesController(AppTenant appTenant, ILogger <TenantController> logger, IAppTenantDbContext appTenantContext, ICloudOfficeDbContext cloudOfficeContext)
     : base(appTenant, appTenantContext, cloudOfficeContext)
 {
     _logger = logger;
 }
コード例 #3
0
 public AccountController(ILogger <AccountController> logger, AppTenant appTenant, IAppTenantDbContext appTenantContext, ICloudOfficeDbContext cloudOfficeContext)
     : base(appTenant, appTenantContext, cloudOfficeContext)
 {
     this._logger = logger;
 }
コード例 #4
0
ファイル: HomeController.cs プロジェクト: martinbozin/amsoft
 public HomeController(IHostingEnvironment env, AppTenant appTenant, IAppTenantDbContext appTenantContext, ICloudOfficeDbContext cloudOfficeContext)
     : base(appTenant, appTenantContext, cloudOfficeContext)
 {
     _env = env;
 }
コード例 #5
0
ファイル: HomeController.cs プロジェクト: martinbozin/amsoft
 public HomeController(AppTenant appTenant, IAppTenantDbContext appTenantContext, ICloudOfficeDbContext cloudOfficeContext)
     : base(appTenant, appTenantContext, cloudOfficeContext)
 {
 }