public TotalCodeGenericPageController(IContentService contentService) { this.contentService = contentService; this.apiService = new TotalCodeApiService(); using (var scope = ConnectorContext.ScopeProvider.CreateScope(autoComplete: true)) { ApiKeyCache.UpdateCache(scope.Database); } }
public BaseController() { apiService = new TotalCodeApiService(); contentService = ConnectorContext.ContentService; using (var scope = ConnectorContext.ScopeProvider.CreateScope(autoComplete: true)) { ApiKeyCache.UpdateCache(scope.Database); } }
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); } }
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); } }
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); } }
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 }