Пример #1
0
 public IdentityService(iChatContext context, IOptions <AppSettings> appSettings, IMapper mapper,
                        IUserQueryService userQueryService, IWorkspaceQueryService workspaceService, IChannelQueryService channelQueryService)
 {
     _context               = context;
     _mapper                = mapper;
     _userQueryService      = userQueryService;
     _workspaceQueryService = workspaceService;
     _appSettings           = appSettings.Value;
     _channelQueryService   = channelQueryService;
 }
Пример #2
0
 public UsersController(IUserQueryService userQueryService,
                        IUserCommandService userCommandService,
                        IWorkspaceQueryService workspaceService, IChannelCommandService channelCommandService,
                        IConversationCommandService conversationCommandService,
                        ICacheService cacheService)
 {
     _userQueryService           = userQueryService;
     _userCommandService         = userCommandService;
     _workspaceQueryService      = workspaceService;
     _channelCommandService      = channelCommandService;
     _conversationCommandService = conversationCommandService;
     _cacheService = cacheService;
 }