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