public AccountsController(UserManager <User> userManager, SignInManager <User> signInManager, ApplicationDbContext _context, IUserStore _userStore, IFriendsListStore _FriendListStore, IRequestStore _RequestStore, INotificationBox _notificationBox, IGroupStore GroupStore, ILogger <AccountsController> _logger, IAdminRequestStore _AdminRequestStore) { this.userManager = userManager; this.signInManager = signInManager; this._context = _context; this._userStore = _userStore; this._FriendListStore = _FriendListStore; this._RequestStore = _RequestStore; this._notificationBox = _notificationBox; this.GroupStore = GroupStore; this._logger = _logger; this._AdminRequestStore = _AdminRequestStore; _mapper = new MapperConfiguration(cfg => cfg.AddProfile <EntityMapper>()).CreateMapper(); }
public OrganisationHierarchyCache( ILogger logger, IRequestStore requestStore, IDateTimeProvider dateTimeProvider, IBackplane backplane, IConfigurationManager configurationManager ) { _logger = logger; _requestStore = requestStore; _dateTimeProvider = dateTimeProvider; _backplane = backplane; var timeoutInSeconds = configurationManager.Get("OrganisationCacheTimeout", 0);//zero if not configured, this avoids confusion with things being auto cached. _logger.Debug($"{nameof(OrganisationHierarchyCache)}", new LogItem("Event", $"Organisation cache timeout set to {timeoutInSeconds}")); _cacheList = new CacheList <Guid, OrganisationHierarchyCacheItem>(GetOrganisationTreeItemForOrganisation, TimeSpan.FromSeconds(timeoutInSeconds), false); }
public LeakyBucketContainer( IRequestStore requestStore, LeakyBucketContainerConfiguration configuration, ISystemClock systemClock = null) { if (requestStore == null) { throw new ArgumentNullException(nameof(requestStore)); } if (configuration == null) { throw new ArgumentNullException(nameof(configuration)); } _requestStore = requestStore; _configuration = configuration; _systemClock = systemClock ?? new SystemClock(); }
public GetUserProfileQuery(Guid Id, UserManager <User> UserManager, IUserStore UserStore, IFriendsListStore FriendListStore, IRequestStore RequestStore, IGroupStore GroupStore, ILogger <AccountsController> Logger, UserAccount existingAccount, IdentityUser Currentuser) { this.AccountId = Id; _UserManager = UserManager; _UserStore = UserStore; _FriendListStore = FriendListStore; _RequestStore = RequestStore; _GroupStore = GroupStore; _Logger = Logger; _CurrentUser = Currentuser; _ExistingAccount = existingAccount; _mapper = new MapperConfiguration(cfg => cfg.AddProfile <EntityMapper>()).CreateMapper(); }
public RequestMethodRegistrationConsumer(IRequestStore requestStore) { _requestStore = requestStore; }
public RequestResponseMessageHandler(IBackplane backplane, ILogger logger, IRequestStore requestStore) { this.backplane = backplane; _logger = logger; this.requestStore = requestStore; }
protected PassThroughActivityHandler(IRequestStore requestStore) { this.requestStore = requestStore; }
public TestKinesisFirehoseController(IRequestStore requestStore) { _requestStore = requestStore; }