public MessagesResource( ICreateMessageCommand createMessageCommand, IMessageKeysByTopic messageKeysByTopic, IMessageKeysByGroup messageKeysByGroup, IMessageKeysBySubscription messageKeysBySubscription) { this.createMessageCommand = createMessageCommand; this.messageKeysBySubscription = messageKeysBySubscription; this.messageKeysByTopic = messageKeysByTopic; this.messageKeysByGroup= messageKeysByGroup; }
public MessagesResource( ICreateMessageCommand createMessageCommand, IMessageKeysByTopic messageKeysByTopic, IMessageKeysByGroup messageKeysByGroup, IMessageKeysBySubscription messageKeysBySubscription) { this.createMessageCommand = createMessageCommand; this.messageKeysBySubscription = messageKeysBySubscription; this.messageKeysByTopic = messageKeysByTopic; this.messageKeysByGroup = messageKeysByGroup; }
public HomeController(UserManager <User> userManager, IGetUsersCommand getUsers, UserModel userModel, IGetMessagesCommand getMessages, ICreateMessageCommand createMessage, IGetOneUserCommand getOneUserCommand, IEditUserCommand editUserCommand, ImageUpload imageUpload, ChatHub chatHub, IGetUserByUsernameCommand getUserByUsernameCommand, SignInManager <User> signInManager) { _userManager = userManager; _getUsers = getUsers; _userModel = userModel; _getMessages = getMessages; _createMessage = createMessage; _getOneUser = getOneUserCommand; _editUser = editUserCommand; _imageUpload = imageUpload; _chatHub = chatHub; _getUserByUsername = getUserByUsernameCommand; _signInManager = signInManager; }
public ContactController(IMappingEngine mappingEngine, ICreateMessageCommand createMessageCommand) { _mappingEngine = mappingEngine; _createMessageCommand = createMessageCommand; }
public async Task <OperationResultResponse <StatusType> > CreateAsync( [FromServices] ICreateMessageCommand command, [FromBody] CreateMessageRequest request) { return(await command.ExecuteAsync(request)); }