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