|
9 | 9 |
|
10 | 10 | namespace Nest |
11 | 11 | { |
12 | | - /// <summary> |
13 | | - /// Control how NEST's behaviour. |
14 | | - /// </summary> |
15 | | - public interface IConnectionSettings : IConnectionSettings<IConnectionSettings>, IConnectionConfigurationValues |
16 | | - { |
| 12 | + //TODO Remove |
| 13 | + |
| 14 | + |
| 15 | + ///// <summary> |
| 16 | + ///// Control how NEST's behaviour. |
| 17 | + ///// </summary> |
| 18 | + //public interface IConnectionSettings : IConnectionSettings<IConnectionSettings>, IConnectionConfigurationValues |
| 19 | + //{ |
17 | 20 |
|
18 | | - } |
19 | | - public interface IConnectionSettings<out T> : IConnectionConfiguration<T> where T : IConnectionSettings<T> |
20 | | - { |
| 21 | + //} |
| 22 | + //public interface IConnectionSettings<out T> : IConnectionConfiguration<T> where T : IConnectionSettings<T> |
| 23 | + //{ |
21 | 24 |
|
22 | | - /// <summary> |
23 | | - /// This calls SetDefaultTypenameInferrer with an implementation that will pluralize type names. |
24 | | - /// This used to be the default prior to Nest 1.0 |
25 | | - /// </summary> |
26 | | - /// <returns></returns> |
27 | | - T PluralizeTypeNames(); |
| 25 | + // /// <summary> |
| 26 | + // /// This calls SetDefaultTypenameInferrer with an implementation that will pluralize type names. |
| 27 | + // /// This used to be the default prior to Nest 1.0 |
| 28 | + // /// </summary> |
| 29 | + // /// <returns></returns> |
| 30 | + // T PluralizeTypeNames(); |
28 | 31 |
|
29 | | - /// <summary> |
30 | | - /// Allows you to update internal the json.net serializer settings to your liking |
31 | | - /// </summary> |
32 | | - /// <param name="modifier"></param> |
33 | | - /// <returns></returns> |
34 | | - T SetJsonSerializerSettingsModifier(Action<JsonSerializerSettings> modifier); |
| 32 | + // /// <summary> |
| 33 | + // /// Allows you to update internal the json.net serializer settings to your liking |
| 34 | + // /// </summary> |
| 35 | + // /// <param name="modifier"></param> |
| 36 | + // /// <returns></returns> |
| 37 | + // T SetJsonSerializerSettingsModifier(Action<JsonSerializerSettings> modifier); |
35 | 38 |
|
36 | | - /// <summary> |
37 | | - /// Add a custom JsonConverter to the build in json serialization by passing in a predicate for a type. |
38 | | - /// This is faster then adding them using AddJsonConverters() because this way they will be part of the cached |
39 | | - /// Json.net contract for a type. |
40 | | - /// </summary> |
41 | | - T AddContractJsonConverters(params Func<Type, JsonConverter>[] contractSelectors); |
| 39 | + // /// <summary> |
| 40 | + // /// Add a custom JsonConverter to the build in json serialization by passing in a predicate for a type. |
| 41 | + // /// This is faster then adding them using AddJsonConverters() because this way they will be part of the cached |
| 42 | + // /// Json.net contract for a type. |
| 43 | + // /// </summary> |
| 44 | + // T AddContractJsonConverters(params Func<Type, JsonConverter>[] contractSelectors); |
42 | 45 |
|
43 | 46 |
|
44 | | - /// <summary> |
45 | | - /// Index to default to when no index is specified. |
46 | | - /// </summary> |
47 | | - /// <param name="defaultIndex">When null/empty/not set might throw NRE later on |
48 | | - /// when not specifying index explicitly while indexing. |
49 | | - /// </param> |
50 | | - /// <returns></returns> |
51 | | - T SetDefaultIndex(string defaultIndex); |
| 47 | + // /// <summary> |
| 48 | + // /// Index to default to when no index is specified. |
| 49 | + // /// </summary> |
| 50 | + // /// <param name="defaultIndex">When null/empty/not set might throw NRE later on |
| 51 | + // /// when not specifying index explicitly while indexing. |
| 52 | + // /// </param> |
| 53 | + // /// <returns></returns> |
| 54 | + // T SetDefaultIndex(string defaultIndex); |
52 | 55 |
|
53 | 56 |
|
54 | | - /// <summary> |
55 | | - /// By default NEST camelCases property names (EmailAddress => emailAddress) that do not have an explicit propertyname |
56 | | - /// either via an ElasticProperty attribute or because they are part of Dictionary where the keys should be treated verbatim. |
57 | | - /// <pre> |
58 | | - /// Here you can register a function that transforms propertynames (default casing, pre- or suffixing) |
59 | | - /// </pre> |
60 | | - /// </summary> |
61 | | - T SetDefaultPropertyNameInferrer(Func<string, string> propertyNameSelector); |
| 57 | + // /// <summary> |
| 58 | + // /// By default NEST camelCases property names (EmailAddress => emailAddress) that do not have an explicit propertyname |
| 59 | + // /// either via an ElasticProperty attribute or because they are part of Dictionary where the keys should be treated verbatim. |
| 60 | + // /// <pre> |
| 61 | + // /// Here you can register a function that transforms propertynames (default casing, pre- or suffixing) |
| 62 | + // /// </pre> |
| 63 | + // /// </summary> |
| 64 | + // T SetDefaultPropertyNameInferrer(Func<string, string> propertyNameSelector); |
62 | 65 |
|
63 | | - /// <summary> |
64 | | - /// Allows you to override how type names should be reprented, the default will call .ToLowerInvariant() on the type's name. |
65 | | - /// </summary> |
66 | | - T SetDefaultTypeNameInferrer(Func<Type, string> defaultTypeNameInferrer); |
| 66 | + // /// <summary> |
| 67 | + // /// Allows you to override how type names should be reprented, the default will call .ToLowerInvariant() on the type's name. |
| 68 | + // /// </summary> |
| 69 | + // T SetDefaultTypeNameInferrer(Func<Type, string> defaultTypeNameInferrer); |
67 | 70 |
|
68 | 71 |
|
69 | | - /// <summary> |
70 | | - /// Map types to a index names. Takes precedence over SetDefaultIndex(). |
71 | | - /// </summary> |
72 | | - T MapDefaultTypeIndices(Action<FluentDictionary<Type, string>> mappingSelector); |
| 72 | + // /// <summary> |
| 73 | + // /// Map types to a index names. Takes precedence over SetDefaultIndex(). |
| 74 | + // /// </summary> |
| 75 | + // T MapDefaultTypeIndices(Action<FluentDictionary<Type, string>> mappingSelector); |
73 | 76 |
|
74 | | - /// <summary> |
75 | | - /// Allows you to override typenames, takes priority over the global SetDefaultTypeNameInferrer() |
76 | | - /// </summary> |
77 | | - T MapDefaultTypeNames(Action<FluentDictionary<Type, string>> mappingSelector); |
78 | | - } |
| 77 | + // /// <summary> |
| 78 | + // /// Allows you to override typenames, takes priority over the global SetDefaultTypeNameInferrer() |
| 79 | + // /// </summary> |
| 80 | + // T MapDefaultTypeNames(Action<FluentDictionary<Type, string>> mappingSelector); |
| 81 | + //} |
79 | 82 | } |
0 commit comments