1 write to Logger
dotnet-svcutil-lib (1)
CommandProcessorOptions.cs (1)
278
this.
Logger
= logger ?? new DebugLogger();
25 references to Logger
dotnet-svcutil-lib (25)
CommandProcessorOptions.cs (16)
280
if (this.
Logger
is DebugLogger debugLooger)
287
using (SafeLogger safeLogger = await SafeLogger.WriteStartOperationAsync(this.
Logger
, "Validating options ...").ConfigureAwait(false))
330
using (SafeLogger logger = await SafeLogger.WriteStartOperationAsync(this.
Logger
, $"Resolving {ProjectFileKey} option ...").ConfigureAwait(false))
370
this.Project = await MSBuildProj.FromPathAsync(projectFile, this.
Logger
, cancellationToken).ConfigureAwait(false);
378
using (SafeLogger logger = await SafeLogger.WriteStartOperationAsync(this.
Logger
, $"Resolving {OutputDirKey} option ...").ConfigureAwait(false))
415
using (SafeLogger logger = await SafeLogger.WriteStartOperationAsync(this.
Logger
, $"Resolving {OutputFileKey} option ...").ConfigureAwait(false))
465
using (SafeLogger logger = await SafeLogger.WriteStartOperationAsync(this.
Logger
, $"Processing {UpdateServiceReferenceKey} option ...").ConfigureAwait(false))
568
using (SafeLogger logger = await SafeLogger.WriteStartOperationAsync(this.
Logger
, $"Processing {BootstrapPathKey} option ...").ConfigureAwait(false))
615
using (var logger = await SafeLogger.WriteStartOperationAsync(this.
Logger
, $"Processing {nameof(this.References)}, count: {this.References.Count}. Reference resolution enabled: {resolveReferences}").ConfigureAwait(false))
644
using (var logger = await SafeLogger.WriteStartOperationAsync(this.
Logger
, $"Processing {nameof(this.NamespaceMappings)}, count: {this.NamespaceMappings.Count}").ConfigureAwait(false))
682
using (SafeLogger logger = await SafeLogger.WriteStartOperationAsync(this.
Logger
, $"Resolving {TargetFrameworkKey} option ...").ConfigureAwait(false))
695
using (var proj = await MSBuildProj.DotNetNewAsync(projectFullPath, this.
Logger
, cancellationToken).ConfigureAwait(false))
715
using (var safeLogger = await SafeLogger.WriteStartOperationAsync(this.
Logger
, $"Processing inputs, count: {this.Inputs.Count} ...").ConfigureAwait(false))
790
using (var logger = await SafeLogger.WriteStartOperationAsync(this.
Logger
, "Processing reference assemblies ...").ConfigureAwait(false))
1014
this.
Logger
?.WriteMessageAsync($"Bootstrap directory '{this.BootstrapPath}' ...", logToUI: false);
1018
this.
Logger
?.WriteMessageAsync($"Deleting bootstrap directory '{this.BootstrapPath}' ...", logToUI: false);
Tool.cs (9)
114
using (var safeLogger = await SafeLogger.WriteStartOperationAsync(options.
Logger
, operationMessage).ConfigureAwait(false))
131
await options.SetupBootstrappingDirectoryAsync(options.
Logger
, cancellationToken).ConfigureAwait(false);
133
var bootstrapResult = await bootstrapper.BoostrapSvcutilAsync(options.KeepBootstrapDir, options.
Logger
, cancellationToken).ConfigureAwait(false);
152
await GenerateParamsFileAsync(options, options.
Logger
, cancellationToken);
222
using (await SafeLogger.WriteStartOperationAsync(options.
Logger
, "Importing metadata ...").ConfigureAwait(false))
244
using (await SafeLogger.WriteStartOperationAsync(options.
Logger
, "Processing Code DOM ...").ConfigureAwait(false))
301
await project.SaveAsync(options.
Logger
, cancellationToken).ConfigureAwait(false);
407
if (options?.
Logger
!= null)
410
await options.
Logger
.WriteErrorAsync(exMsg, logToUI: false).ConfigureAwait(false);