2 types derived from OptionBase
dotnet-svcutil-lib (2)
Shared\Options\ListValueOption.cs (1)
20
internal class ListValueOption<TValue> :
OptionBase
Shared\Options\SingleValueOption.cs (1)
12
internal class SingleValueOption<TValue> :
OptionBase
1 instantiation of OptionBase
dotnet-svcutil-lib (1)
Shared\Options\OptionBase.cs (1)
126
var other = new
OptionBase
((string)this.Name, this.Aliases.ToArray());
46 references to OptionBase
dotnet-svcutil-lib (46)
CommandProcessorOptions.cs (2)
110
var
typeReuseModeOption = this.GetOption(TypeReuseModeKey);
311
foreach (
var
option in disallowedUserOptionsOnUpdateOperation)
Shared\Options\ApplicationOptions.cs (18)
22
private SortedDictionary<string,
OptionBase
> PropertyBag { get; set; }
52
this.PropertyBag = new SortedDictionary<string,
OptionBase
>();
68
protected void RegisterOptions(params
OptionBase
[] options)
70
foreach (
var
option in options)
72
var
existingOption = GetOption(option.Name, throwOnMissing: false);
89
foreach (
var
thisOption in this.GetOptions())
91
var
otherOption = other.GetOption(thisOption.Name, throwOnMissing: false);
188
public
OptionBase
GetOption(string optionId, bool throwOnMissing = true)
190
return GetOption<
OptionBase
>(optionId, throwOnMissing);
197
public TOptionBase GetOption<TOptionBase>(string optionId, bool throwOnMissing = true) where TOptionBase :
OptionBase
199
var
option = this.PropertyBag.ContainsKey(optionId) ?
211
public bool TryGetOption(string optionId, out
OptionBase
option)
221
public IEnumerable<
OptionBase
> GetOptions(bool allOptions = false)
225
var
option = p.Value;
233
public IEnumerable<
OptionBase
> GetAllOptions()
243
var
option = GetOption(optionId, throwOnMissing);
253
var
option = GetOption(optionId);
267
foreach (
var
option in GetAllOptions())
Shared\Options\OptionBase.cs (3)
105
public virtual void CopyTo(
OptionBase
other)
124
public
OptionBase
Clone()
126
var
other = new OptionBase((string)this.Name, this.Aliases.ToArray());
Shared\Options\OptionsSerializer.cs (10)
55
bool optionFound = options.TryGetOption(jPropInfo.Key, out
var
option);
96
private static void ReadOption(
OptionBase
option, JToken jToken)
108
if (options.TryGetOption(jProperty.Key, out
var
option))
148
var
providerOption = options.GetOption(ApplicationOptions.ProviderIdKey);
151
var
versionOption = options.GetOption(ApplicationOptions.VersionKey);
157
var
optionsOption = options.GetOption(ApplicationOptions.OptionsKey);
162
var
inputsOption = options.GetOption(ApplicationOptions.InputsKey);
172
foreach (
var
option in otherOptions)
180
private static void SerializeOption(
OptionBase
option, JsonWriter writer, JsonSerializer serializer)
218
foreach (
var
option in printOptions)
Shared\Options\OptionValueParser.cs (7)
22
public static TValue ParseValue<TValue>(object value,
OptionBase
option)
159
public static object GetTelemetryValue(
OptionBase
option)
210
private static KeyValuePair<string, string> ParseKeyValuePair(string stringValue,
OptionBase
option)
221
public static object ParseEnum<TValue>(string value,
OptionBase
option)
246
public static object CreateValue<TValue>(Func<object> GetValueFunc,
OptionBase
option, object originalValue)
263
public static void ThrowInvalidValueIf(bool condition, object value,
OptionBase
option)
275
public static void ThrowInvalidValue(object value,
OptionBase
option, Exception innerException)
Shared\Options\WCFCSUpdateOptions.cs (6)
46
var
internalOption = GetOption(InternalTypeAccessKey);
50
var
namespaceOption = GetOption(NamespaceMappingsKey);
53
var
collectionTypeRefOption = GetOption(CollectionTypeReferenceKey);
56
var
dictionaryCollectionTypeRefOption = GetOption(DictionaryCollectionTypeReferenceKey);
160
e.Value = new List<object> { ParseNamespace(jToken.Value<string>(), sender as
OptionBase
) };
164
private object ParseNamespace(string stringValue,
OptionBase
option)