Line data Source code
1 : using System.Globalization;
2 :
3 : namespace Cqrs.WebApi.Formatters.FormMultipart.Infrastructure
4 : {
5 : public class MultipartFormatterSettings
6 0 : {
7 : /// <summary>
8 : /// serialize byte array property as HttpFile when sending data if true or as indexed array if false
9 : /// (default value is "false)
10 : /// </summary>
11 : public bool SerializeByteArrayAsHttpFile { get; set; }
12 :
13 : /// <summary>
14 : /// add validation error "The value is required." if no value is present in request for non-nullable property if this parameter is "true"
15 : /// (default value is "false)
16 : /// </summary>
17 : public bool ValidateNonNullableMissedProperty { get; set; }
18 :
19 : private CultureInfo _CultureInfo;
20 : /// <summary>
21 : /// default is CultureInfo.CurrentCulture
22 : /// </summary>
23 : public CultureInfo CultureInfo
24 : {
25 : get { return _CultureInfo ?? CultureInfo.CurrentCulture; }
26 : set { _CultureInfo = value; }
27 : }
28 : }
29 : }
|