Skip to content

Commit

Permalink
correct upgrading MediatR add await on Publish
Browse files Browse the repository at this point in the history
  • Loading branch information
thiennn committed May 15, 2017
1 parent c5e5248 commit 7118237
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class SimplSignInManager<TUser> : SignInManager<TUser> where TUser : clas
public override async Task SignInAsync(TUser user, bool isPersistent, string authenticationMethod = null)
{
var userId = await UserManager.GetUserIdAsync(user);
_mediator.Publish(new UserSignedIn {UserId = long.Parse(userId)});
await _mediator.Publish(new UserSignedIn {UserId = long.Parse(userId)});
await base.SignInAsync(user, isPersistent, authenticationMethod);
}
}
Expand Down

0 comments on commit 7118237

Please sign in to comment.