コード例 #1
0
 public TotalCodeGenericPageController(IContentService contentService)
 {
     this.contentService = contentService;
     this.apiService     = new TotalCodeApiService();
     using (var scope = ConnectorContext.ScopeProvider.CreateScope(autoComplete: true))
     {
         ApiKeyCache.UpdateCache(scope.Database);
     }
 }
コード例 #2
0
 public BaseController()
 {
     apiService     = new TotalCodeApiService();
     contentService = ConnectorContext.ContentService;
     using (var scope = ConnectorContext.ScopeProvider.CreateScope(autoComplete: true))
     {
         ApiKeyCache.UpdateCache(scope.Database);
     }
 }
コード例 #3
0
 public RegistrationController()
 {
     verificationService = new TotalCodeApiService();
     contentService      = ConnectorContext.ContentService;
     helper = new Helpers.UrlHelper(Umbraco);
     using (var scope = ConnectorContext.ScopeProvider.CreateScope(autoComplete: true))
     {
         ApiKeyCache.UpdateCache(scope.Database);
     }
 }
コード例 #4
0
 public GameController(IGameService gameService)
 {
     _gameService        = gameService;
     this.apiService     = new TotalCodeApiService();
     this.contentService = ConnectorContext.ContentService;
     using (var scope = ConnectorContext.ScopeProvider.CreateScope(autoComplete: true))
     {
         ApiKeyCache.UpdateCache(scope.Database);
     }
 }
コード例 #5
0
 public ConfirmEmailController(ILogger logger)
 {
     this.logger         = logger;
     verificationService = new TotalCodeApiService();
     helper = new Helpers.UrlHelper(Umbraco);
     using (var scope = ConnectorContext.ScopeProvider.CreateScope(autoComplete: true))
     {
         ApiKeyCache.UpdateCache(scope.Database);
     }
 }
コード例 #6
0
        public ControllerService()
        {
            this.scopeProvider = ConnectorContext.ScopeProvider;
            using (var scope = scopeProvider.CreateScope(autoComplete: true))
            {
                this.database = scope.Database;
                ApiKeyCache.UpdateCache(scope.Database);
            }
            this.userGroupService = new UserGroupService(ConnectorContext.UserService, database, ConnectorContext.Logger);
            this.languageService  = new LanguageDictionaryService(ConnectorContext.LocalizationService, ConnectorContext.DomainService, ConnectorContext.Logger);
            this.homeNode         = new HomeContentNode(ConnectorContext.ContentService, ConnectorContext.LocalizationService, ConnectorContext.DomainService, ConnectorContext.ContentTypeService, ConnectorContext.Logger);
            this.apiService       = new ApiKeysService(database);
            this.nodeHelper       = new NodeHelper();

            SaveAndPublish = bool.Parse(TenantGenerationOptions.SaveAndPublish);
            SecureUrls     = bool.Parse(TenantGenerationOptions.SecureUrls);
            SetupLocalUrls = bool.Parse(TenantGenerationOptions.SetupLocalUrls);

#if DEBUG
            SetupLocalUrls = true;
#endif
        }