Ejemplo n.º 1
0
        private HttpContent GetHttpContent <T>(CreateTokenForPasswordResetCommand <T> command)
        {
            var requestBody = new
            {
                Email      = command.Email,
                TtlMinutes = command.TimeToLiveMinutes
            };

            return(new StringContent(this.serializerService.Serialize(requestBody)));
        }
Ejemplo n.º 2
0
 public HttpRequestMessage GetRequestMessage <T>(CreateTokenForPasswordResetCommand <T> command)
 {
     return(this.GetRequestMessage <T>(this.GetRequestUri <T>(), this.GetHttpContent(command), HttpMethod));
 }
Ejemplo n.º 3
0
 public CreateTokenForPasswordResetHttpApiCommand(CreateTokenForPasswordResetCommand <T> command, IRequestMessageBuilderFactory requestMessageBuilderFactory)
 {
     this.command        = command;
     this.requestBuilder = requestMessageBuilderFactory.GetRequestMessageBuilder <CreateTokenForPasswordResetRequestMessageBuilder>();
 }