public FileOperationsController() { if (_managerService == null) _managerService = new SnippetCacheManagerServiceClient(); if (_dataService == null) _dataService = new SnippetCacheDataServiceClient(); }
public HomeController() { if (_managerService == null) { _managerService = new SnippetCacheManagerServiceClient(); } }
public AccountController(IAuthProvider authProvider, IAccountRepository accountRepository) { Guard.ArgNotNull(authProvider, "authProvider"); Guard.ArgNotNull(accountRepository, "accountRepository"); _authProvider = authProvider; _accountRepository = accountRepository; if (_managerService == null) _managerService = new SnippetCacheManagerServiceClient(); }
public AccountController(IAuthProvider authProvider, IAccountRepository accountRepository, ISnippetCacheManagerService managerService) { Guard.ArgNotNull(authProvider, "authProvider"); Guard.ArgNotNull(accountRepository, "accountRepository"); Guard.ArgNotNull(managerService, "managerService"); _authProvider = authProvider; _accountRepository = accountRepository; _managerService = managerService; }
public UserController() { if (_managerService == null) _managerService = new SnippetCacheManagerServiceClient(); if (_accountRepository == null) _accountRepository = new AccountRepository(); if(_userCache == null) _userCache = new Dictionary<int, UserDTO>(); }
public MessageController(ISnippetCacheManagerService managerService) { _managerService = managerService; }
public MessageController() { if (_managerService == null) _managerService = new SnippetCacheManagerServiceClient(); }
public FileOperationsController(ISnippetCacheManagerService managerService, ISnippetCacheDataService dataService) { _managerService = managerService; _dataService = dataService; }
public PublicController(ISnippetCacheManagerService service) { if (service != null) _managerService = service; }
public PublicController() { if (_managerService == null) _managerService = new SnippetCacheManagerServiceClient(); _displayLanguages = _managerService.GetLanguagesForDisplay(); }
public UserController(ISnippetCacheManagerService managerService, IAccountRepository accountRepository) { _managerService = managerService; _accountRepository = accountRepository; }