Beispiel #1
0
 public static IPayloadSpecifiedRequest WithJson(this IPayloadHttpRequest payloadHttpRequest, string json) =>
 payloadHttpRequest.WithPayload(new StringJsonContent(json));
Beispiel #2
0
 public static IPayloadSpecifiedRequest WithObject <T>(this IPayloadHttpRequest payloadHttpRequest, T message)
 {
     return(message is byte[] bytes
         ? payloadHttpRequest.WithBytes(bytes)
         : payloadHttpRequest.WithPayload(ObjectJsonContent.WithMessage(message)));
 }
Beispiel #3
0
 public static IPayloadSpecifiedRequest WithBytes(this IPayloadHttpRequest payloadHttpRequest, byte[] bytes) =>
 payloadHttpRequest.WithPayload(new BytesContent(bytes));