2 instantiations of CommandProcessorOptions
dotnet-svcutil-lib (2)
CommandLineParser.cs (1)
124
var options = new
CommandProcessorOptions
();
CommandProcessorOptions.cs (1)
137
CommandProcessorOptions cmdOptions = new
CommandProcessorOptions
();
108 references to CommandProcessorOptions
dotnet-svcutil-lib (106)
CodeDomFixup\CodeFixup.cs (1)
26
public abstract void Fixup(
CommandProcessorOptions
options);
CodeDomFixup\IFixup.cs (1)
9
void Fixup(
CommandProcessorOptions
options);
CodeDomFixup\MetadataFixup.cs (1)
61
public void Fixup(
CommandProcessorOptions
options)
CodeDomFixup\VisitorFixup.cs (2)
12
private static CodeDomVisitor[] GetVisitors(ServiceContractGenerator generator,
CommandProcessorOptions
options)
42
public override void Fixup(
CommandProcessorOptions
options)
CodeDomFixup\WcfCodeGenerationExtension.cs (3)
20
private
CommandProcessorOptions
_options;
22
public WcfCodeGenerationExtension(
CommandProcessorOptions
options)
114
private static void RunFixups(IFixup[] fixups,
CommandProcessorOptions
options)
CodeSerializer.cs (4)
28
internal CodeSerializer(
CommandProcessorOptions
options, IEnumerable<MetadataSection> inputMetadata)
32
_outputFilePath = OutputPathHelper.BuildFilePath(s_defaultFileName, options.OutputDir.FullName, outputFilename, extension,
CommandProcessorOptions
.Switches.OutputFile.Name);
121
internal static string GetOutputFileExtension(
CommandProcessorOptions
options)
131
internal static string GetOutputFileName(
CommandProcessorOptions
options, IEnumerable<MetadataSection> metadataSections)
CommandLineParser.cs (4)
122
internal static
CommandProcessorOptions
ParseCommand(string[] cmd)
124
var
options = new CommandProcessorOptions();
141
SetValue(options,
CommandProcessorOptions
.InputsKey, Environment.ExpandEnvironmentVariables(arg));
193
private static void SetValue(
CommandProcessorOptions
options, string optionName, object value)
CommandProcessorOptions.cs (16)
25
public override string Json { get { return Serialize<
CommandProcessorOptions
, OptionsSerializer<
CommandProcessorOptions
>>(); } }
116
public static new
CommandProcessorOptions
FromFile(string filePath, bool throwOnError = true)
118
return FromFile<
CommandProcessorOptions
>(filePath, throwOnError);
121
public static bool TryFromFile(string filePath, out
CommandProcessorOptions
options)
126
options = FromFile<
CommandProcessorOptions
>(filePath, throwOnError: false);
135
internal static async Task<
CommandProcessorOptions
> ParseArgumentsAsync(string[] args, ILogger logger, CancellationToken cancellationToken)
137
CommandProcessorOptions
cmdOptions = new CommandProcessorOptions();
147
TryFromFile(fileUri.LocalPath, out
var
fileOptions) && fileOptions.GetOptions().Count() > 0)
485
if (updateFileName.Equals(
CommandProcessorOptions
.SvcutilParamsFileName, RuntimeEnvironmentHelper.FileStringComparison) ||
486
updateFileName.Equals(
CommandProcessorOptions
.WCFCSParamsFileName, RuntimeEnvironmentHelper.FileStringComparison))
498
var paramsFiles = jsonFiles.Except(excludeJsonFiles).Where(fn => Path.GetFileName(fn).Equals(
CommandProcessorOptions
.SvcutilParamsFileName, RuntimeEnvironmentHelper.FileStringComparison) ||
499
Path.GetFileName(fn).Equals(
CommandProcessorOptions
.WCFCSParamsFileName, RuntimeEnvironmentHelper.FileStringComparison));
523
var svcutilParmasFile = Path.Combine(projectDir, this.UpdateServiceReferenceFolder,
CommandProcessorOptions
.SvcutilParamsFileName);
526
var wcfcsParamsFile = Path.Combine(projectDir, this.UpdateServiceReferenceFolder,
CommandProcessorOptions
.WCFCSParamsFileName);
543
if (Path.GetFileName(paramsFilePath).Equals(
CommandProcessorOptions
.WCFCSParamsFileName))
HelpGenerator.cs (50)
49
ArgumentInfo.CreateParameterHelpInfo(
CommandProcessorOptions
.Switches.OutputDirectory.Name, SR.ParametersDirectory, string.Format(SR.HelpDirectoryFormat,
CommandProcessorOptions
.Switches.OutputDirectory.Abbreviation)),
50
ArgumentInfo.CreateFlagHelpInfo(
CommandProcessorOptions
.Switches.NoLogo.Name, string.Format(SR.HelpNologoFormat,
CommandProcessorOptions
.Switches.NoLogo.Abbreviation)),
51
ArgumentInfo.CreateParameterHelpInfo(
CommandProcessorOptions
.Switches.Verbosity.Name, SR.ParametersVerbosity, string.Format(SR.HelpVerbosityFormat, string.Join(", ", System.Enum.GetNames(typeof(Verbosity))),
CommandProcessorOptions
.Switches.Verbosity.Abbreviation)),
52
ArgumentInfo.CreateFlagHelpInfo(
CommandProcessorOptions
.Switches.Help.Name, string.Format(SR.HelpHelpFormat,
CommandProcessorOptions
.Switches.Help.Abbreviation)),
53
ArgumentInfo.CreateParameterHelpInfo(
CommandProcessorOptions
.Switches.ProjectFile.Name, SR.ParametersProjectFile, string.Format(SR.HelpProjectFileFormat,
CommandProcessorOptions
.Switches.ProjectFile.Abbreviation)),
54
ArgumentInfo.CreateParameterHelpInfo(
CommandProcessorOptions
.Switches.OutputFile.Name, SR.ParametersOut, string.Format(SR.HelpOutFormat,
CommandProcessorOptions
.Switches.OutputFile.Abbreviation)),
55
ArgumentInfo.CreateParameterHelpInfo(
CommandProcessorOptions
.Switches.Namespace.Name, SR.ParametersNamespace, string.Format(SR.HelpNamespaceFormat,
CommandProcessorOptions
.Switches.Namespace.Abbreviation), true),
56
ArgumentInfo.CreateFlagHelpInfo(
CommandProcessorOptions
.Switches.MessageContract.Name, string.Format(SR.HelpMessageContractFormat,
CommandProcessorOptions
.Switches.MessageContract.Abbreviation), true),
57
ArgumentInfo.CreateFlagHelpInfo(
CommandProcessorOptions
.Switches.EnableDataBinding.Name, string.Format(SR.HelpEnableDataBindingFormat,
CommandProcessorOptions
.Switches.EnableDataBinding.Abbreviation)),
58
ArgumentInfo.CreateFlagHelpInfo(
CommandProcessorOptions
.Switches.Internal.Name, string.Format(SR.HelpInternalFormat,
CommandProcessorOptions
.Switches.Internal.Abbreviation)),
59
ArgumentInfo.CreateParameterHelpInfo(
CommandProcessorOptions
.Switches.Reference.Name, SR.ParametersReference, string.Format(SR.HelpReferenceCodeGenerationFormat,
CommandProcessorOptions
.Switches.Reference.Abbreviation), true),
60
ArgumentInfo.CreateFlagHelpInfo(
CommandProcessorOptions
.Switches.NoTypeReuse.Name, string.Format(SR.HelpNoTypeReuseFormat,
CommandProcessorOptions
.Switches.NoTypeReuse.Abbreviation,
CommandProcessorOptions
.Switches.Reference.Name,
CommandProcessorOptions
.Switches.CollectionType.Name)),
61
ArgumentInfo.CreateParameterHelpInfo(
CommandProcessorOptions
.Switches.CollectionType.Name, SR.ParametersCollectionType, string.Format(SR.HelpCollectionTypeFormat,
CommandProcessorOptions
.Switches.CollectionType.Abbreviation)),
62
ArgumentInfo.CreateParameterHelpInfo(
CommandProcessorOptions
.Switches.ExcludeType.Name, SR.ParametersExcludeType, string.Format(SR.HelpExcludeTypeCodeGenerationFormat,
CommandProcessorOptions
.Switches.ExcludeType.Abbreviation)),
63
ArgumentInfo.CreateFlagHelpInfo(
CommandProcessorOptions
.Switches.NoStdlib.Name, string.Format(SR.HelpNostdlibFormat,
CommandProcessorOptions
.Switches.NoStdlib.Abbreviation)),
64
ArgumentInfo.CreateParameterHelpInfo(
CommandProcessorOptions
.Switches.Serializer.Name, SerializerMode.Auto.ToString(), string.Format(SR.HelpAutoSerializerFormat,
CommandProcessorOptions
.Switches.Serializer.Abbreviation), true),
65
ArgumentInfo.CreateParameterHelpInfo(
CommandProcessorOptions
.Switches.Serializer.Name, SerializerMode.DataContractSerializer.ToString(), SR.HelpDataContractSerializer),
66
ArgumentInfo.CreateParameterHelpInfo(
CommandProcessorOptions
.Switches.Serializer.Name, SerializerMode.XmlSerializer.ToString(), SR.HelpXmlSerializer),
67
ArgumentInfo.CreateFlagHelpInfo(
CommandProcessorOptions
.Switches.Sync.Name, string.Format(SR.HelpSyncFormat,
CommandProcessorOptions
.Switches.Sync.Abbreviation)),
68
ArgumentInfo.CreateFlagHelpInfo(
CommandProcessorOptions
.Switches.Wrapped.Name, string.Format(SR.HelpWrappedFormat,
CommandProcessorOptions
.Switches.Wrapped.Abbreviation)),
69
ArgumentInfo.CreateParameterHelpInfo(
CommandProcessorOptions
.Switches.Update.Name, SR.ParametersWebServiceReferenceName, string.Format(SR.HelpUpdateWebServiceReferenceFormat,
CommandProcessorOptions
.Switches.Update.Abbreviation)),
70
ArgumentInfo.CreateParameterHelpInfo(
CommandProcessorOptions
.Switches.RuntimeIdentifier.Name, SR.ParametersRuntimeIdentifier, string.Format(SR.HelpRuntimeIdentifierFormat,
CommandProcessorOptions
.Switches.RuntimeIdentifier.Abbreviation)),
71
ArgumentInfo.CreateParameterHelpInfo(
CommandProcessorOptions
.Switches.TargetFramework.Name, SR.ParametersTargetFramework, string.Format(SR.HelpTargetFrameworkFormat,
CommandProcessorOptions
.Switches.TargetFramework.Abbreviation)),
72
ArgumentInfo.CreateFlagHelpInfo(
CommandProcessorOptions
.Switches.AcceptCertificate.Name, string.Format(SR.HelpAcceptCertificateFormat,
CommandProcessorOptions
.Switches.AcceptCertificate.Abbreviation)),
73
ArgumentInfo.CreateFlagHelpInfo(
CommandProcessorOptions
.Switches.ServiceContract.Name, string.Format(SR.HelpServiceContractFormat,
CommandProcessorOptions
.Switches.ServiceContract.Abbreviation))
ImportModule.cs (10)
32
private
CommandProcessorOptions
_options;
42
internal ImportModule(
CommandProcessorOptions
options, ServiceDescriptor serviceDescriptor, WsdlImporter importer)
208
internal static ServiceContractGenerator CreateServiceContractGenerator(
CommandProcessorOptions
options, CodeCompileUnit codeCompileUnit)
228
private static void SetContractGeneratorOptions(
CommandProcessorOptions
options, ServiceContractGenerator contractGenerator)
257
public static void RemoveUnneededSerializers(
CommandProcessorOptions
options, ServiceDescriptor serviceDescriptor, Collection<IWsdlImportExtension> wsdlImportExtensions)
283
public static void ConfigureSerializers(
CommandProcessorOptions
options, CodeCompileUnit codeCompileUnit, WsdlImporter importer)
304
internal static DcNS.XsdDataContractImporter CreateDCImporter(
CommandProcessorOptions
options, CodeCompileUnit codeCompileUnit)
312
private static DcNS.ImportOptions CreateDCImportOptions(
CommandProcessorOptions
options)
332
private static void AddStateForXmlSerializerImport(
CommandProcessorOptions
options, WsdlImporter importer, CodeCompileUnit codeCompileUnit)
356
private static void AddStateForDataContractSerializerImport(
CommandProcessorOptions
options, WsdlImporter importer, CodeCompileUnit codeCompileUnit)
OutputPathHelper.cs (2)
94
throw new ToolArgumentException(string.Format(SR.ErrPathTooLongFormat, path,
CommandProcessorOptions
.Switches.OutputDirectory.Name, option), ptle);
98
throw new ToolArgumentException(string.Format(SR.ErrPathTooLongDirOnlyFormat, path,
CommandProcessorOptions
.Switches.OutputDirectory.Name), ptle);
Tool.cs (10)
79
CommandProcessorOptions
options = null;
85
options = await
CommandProcessorOptions
.ParseArgumentsAsync(args, logger, cancellationToken);
198
internal static async Task<ToolExitCode> RunAsync(
CommandProcessorOptions
options, CancellationToken cancellationToken)
263
private static bool CanAddProjectReferences(
CommandProcessorOptions
options)
271
private static async Task<bool> AddProjectReferencesAsync(MSBuildProj project,
CommandProcessorOptions
options, CancellationToken cancellationToken)
313
private static async Task GenerateParamsFileAsync(
CommandProcessorOptions
options, ILogger logger, CancellationToken cancellationToken)
329
var paramsFile = Path.Combine(options.OutputDir.FullName,
CommandProcessorOptions
.SvcutilParamsFileName);
335
private static void ThrowOnValidationErrors(
CommandProcessorOptions
options)
345
private static async Task<int> ProcessExceptionAsync(Exception ex,
CommandProcessorOptions
options)
438
private static void ValidateUICulture(
CommandProcessorOptions
options)
ToolConsole.cs (2)
31
public static void Init(
CommandProcessorOptions
options)
53
toolError.AppendLine(string.Format(SR.MoreHelpFormat,
CommandProcessorOptions
.Switches.Help.Abbreviation));
dotnet-svcutil-lib.Tests (2)
UnitTest.cs (2)
248
var
cmdOptions = CommandParser.ParseCommand(args);
293
var
cmdOptions = CommandParser.ParseCommand(args);