示例#1
0
 public static IHalBuilder WithContent <TContent>(this IHalBuilder builder, TContent content, Encoding encoding, string mediaType)
     where TContent : IHalRequest
 {
     return(builder.WithContent(() => content, encoding, mediaType));
 }
示例#2
0
 public static IHalBuilder WithContent <TContent>(this IHalBuilder builder, Func <TContent> contentFactory, Encoding encoding)
     where TContent : IHalRequest
 {
     return(builder.WithContent(contentFactory, encoding, null));
 }
示例#3
0
 public static IHalBuilder WithContent <TContent>(this IHalBuilder builder, TContent content)
     where TContent : IHalRequest
 {
     return(builder.WithContent(content, null, null));
 }