Exemplo n.º 1
0
 public AuthController(UserManager <User> userManager,
                       SignInManager <User> signInManager, ISetUserStatusCommand setUserStatus,
                       ChatHub chatHub, IGetUserByUsernameCommand getUserByUsernameCommand)
 {
     _userManager       = userManager;
     _signInManager     = signInManager;
     _setUserStatus     = setUserStatus;
     _chatHub           = chatHub;
     _getUserByUsername = getUserByUsernameCommand;
 }
Exemplo n.º 2
0
 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;
 }