Example #1
0
 public MessageController(ICurrentAuthorService currentAuthorService,
                          IAuthorService authorService,
                          ICommandResolver commandResolver,
                          IMediator mediator)
 {
     _currentAuthorService = currentAuthorService;
     _commandResolver      = commandResolver;
     _mediator             = mediator;
 }
 public CurrentAuthorSetterFilter(
     ICurrentAuthorService currentAuthorService,
     ILongToGuidConverter guidConverter,
     ICurrentChatService currentChatService,
     IAuthorService authorService)
 {
     _currentAuthorService = currentAuthorService;
     _guidConverter        = guidConverter;
     _currentChatService   = currentChatService;
     _authorService        = authorService;
 }
 public LittleThingService(IRepository <LittleThing> littleThingsRepository,
                           ICurrentAuthorService currentAuthor)
 {
     _littleThingsRepository = littleThingsRepository;
     _currentAuthor          = currentAuthor;
 }
Example #4
0
 public ApplicationDbContext(DbContextOptions <ApplicationDbContext> options,
                             ICurrentAuthorService authorService)
     : base(options)
 {
     _authorService = authorService;
 }