コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the
 /// <see cref="DefaultEventService"/> class.
 /// </summary>
 /// <param name="options">The options.</param>
 /// <param name="context">The context.</param>
 /// <param name="sink">The sink.</param>
 public DefaultEventService(
     EventOptions eventOptions,
     IHttpContextAccessor httpContextAccessor,
     IDateTimeAccessor dateTimeAccessor,
     IEventSink eventSink)
 {
     this.eventOptions        = eventOptions;
     this.httpContextAccessor = httpContextAccessor;
     this.dateTimeAccessor    = dateTimeAccessor;
     this.eventSink           = eventSink;
 }
コード例 #2
0
 public EventsController(
     Lazy <IQueryEventsCommand> queryEventsCommand,
     Lazy <IGetEventsCommand> getEventsCommand,
     Lazy <ICreateEventsCommand> createEventsCommand,
     IDateTimeAccessor dateTimeAccessor)
 {
     _queryEventsCommand  = queryEventsCommand;
     _getEventsCommand    = getEventsCommand;
     _createEventsCommand = createEventsCommand;
     _dateTimeAccessor    = dateTimeAccessor;
 }
コード例 #3
0
 public AuthenticationService(
     IIdentityServerInteractionService interaction,
     UserAccountService userAccountService,
     IHttpContextAccessor httpContextAccessor,
     ApplicationOptions applicationOptions,
     IDateTimeAccessor dateTimeAccessor)
 {
     this._interaction         = interaction;
     this._userAccountService  = userAccountService;
     this._httpContextAccessor = httpContextAccessor;
     this._applicationOptions  = applicationOptions;
     this._dateTimeAccessor    = dateTimeAccessor;
 }
コード例 #4
0
 public UserAccountService(
     ApplicationOptions applicationOptions,
     ICrypto crypto,
     IUserAccountStore userAccountStore,
     IEventService eventService,
     IHttpContextAccessor httpContextAccessor,
     IDateTimeAccessor dateTimeAccessor)
 {
     this._applicationOptions  = applicationOptions;
     this._crypto              = crypto;
     this._userAccountStore    = userAccountStore;
     this._eventService        = eventService;
     this._httpContextAccessor = httpContextAccessor;
     this._dateTimeAccessor    = dateTimeAccessor;
 }