예제 #1
0
            public override async Task <CheckUsernameServiceResponse> Handle(CheckUsernameServiceRequest request)
            {
                var exists = await IdentityContext.UsernameExists(request.Username);

                return(new CheckUsernameServiceResponse
                {
                    IsAvailable = !exists
                });
            }