예제 #1
0
 public static RequestBodyType GetRequestContentKind(this MetadataValueProvider valueProvider)
 => valueProvider.GetValue <IRequestContentKindProvider, RequestBodyType>(x => x.GetKind(), RequestBodyType.Auto);
예제 #2
0
 public static string GetStringFormat(this MetadataValueProvider valueProvider)
 => valueProvider.GetValue <IStringFormatProvider, string>(x => x.Format);
예제 #3
0
 public static string GetParameterPrefix(this MetadataValueProvider valueProvider)
 => valueProvider.GetValue <IRestNamePrefixProvider, string>(x => x.Prefix);
예제 #4
0
 public static string GetContentCharSet(this MetadataValueProvider valueProvider)
 => valueProvider.GetValue <IContentCharSetProvider, string>(x => x.CharSet);
예제 #5
0
 public static string GetContentFileName(this MetadataValueProvider valueProvider)
 => valueProvider.GetValue <IContentFileNameProvider, string>(x => x.FileName);
예제 #6
0
 public static MimeType GetContentMediaType(this MetadataValueProvider valueProvider)
 => valueProvider.GetValue <IContentMediaTypeProvider, MimeType>(x => x.MediaType);
예제 #7
0
 public static bool GetIsRequired(this MetadataValueProvider valueProvider)
 => valueProvider.GetValue <IIsRequiredProvider, bool>(x => x.IsRequired, false);
예제 #8
0
 public static string GetParameterName(this MetadataValueProvider valueProvider)
 => valueProvider.GetValue <IParameterNameProvider, string>(x => x.Name);
예제 #9
0
 public static BindingPath GetBindingPath(this MetadataValueProvider valueProvider)
 => valueProvider.GetValue <IBindingPathProvider, BindingPath>(x => x.BindingPath) ?? BindingPath.Empty;
예제 #10
0
 public static string GetRequestRoute(this MetadataValueProvider valueProvider)
 => valueProvider.GetValue <IRequestRouteProvider, string>(x => x.Route);