1 instantiation of SafeLogger
dotnet-svcutil-lib (1)
Shared\Utilities\SafeLogger.cs (1)
36
var safeLogger = new
SafeLogger
(logger);
64 references to SafeLogger
dotnet-svcutil-lib (64)
Bootstrapper\SvcutilBootstrapper.cs (5)
62
using (await
SafeLogger
.WriteStartOperationAsync(logger, "Bootstrapping svcutil ...").ConfigureAwait(false))
115
using (await
SafeLogger
.WriteStartOperationAsync(logger, $"Creating project file: \"{projectFullPath}\"").ConfigureAwait(false))
168
using (
var
safeLogger = await
SafeLogger
.WriteStartOperationAsync(logger, "Generating Program.cs ...").ConfigureAwait(false))
178
using (await
SafeLogger
.WriteStartOperationAsync(logger, $"Generating {paramsFilePath} params file ...").ConfigureAwait(false))
CommandProcessorOptions.cs (22)
288
using (
SafeLogger
safeLogger = await
SafeLogger
.WriteStartOperationAsync(this.Logger, "Validating options ...").ConfigureAwait(false))
331
using (
SafeLogger
logger = await
SafeLogger
.WriteStartOperationAsync(this.Logger, $"Resolving {ProjectFileKey} option ...").ConfigureAwait(false))
379
using (
SafeLogger
logger = await
SafeLogger
.WriteStartOperationAsync(this.Logger, $"Resolving {OutputDirKey} option ...").ConfigureAwait(false))
416
using (
SafeLogger
logger = await
SafeLogger
.WriteStartOperationAsync(this.Logger, $"Resolving {OutputFileKey} option ...").ConfigureAwait(false))
466
using (
SafeLogger
logger = await
SafeLogger
.WriteStartOperationAsync(this.Logger, $"Processing {UpdateServiceReferenceKey} option ...").ConfigureAwait(false))
569
using (
SafeLogger
logger = await
SafeLogger
.WriteStartOperationAsync(this.Logger, $"Processing {BootstrapPathKey} option ...").ConfigureAwait(false))
616
using (
var
logger = await
SafeLogger
.WriteStartOperationAsync(this.Logger, $"Processing {nameof(this.References)}, count: {this.References.Count}. Reference resolution enabled: {resolveReferences}").ConfigureAwait(false))
645
using (
var
logger = await
SafeLogger
.WriteStartOperationAsync(this.Logger, $"Processing {nameof(this.NamespaceMappings)}, count: {this.NamespaceMappings.Count}").ConfigureAwait(false))
695
using (
SafeLogger
logger = await
SafeLogger
.WriteStartOperationAsync(this.Logger, $"Resolving {TargetFrameworkKey} option ...").ConfigureAwait(false))
728
using (
var
safeLogger = await
SafeLogger
.WriteStartOperationAsync(this.Logger, $"Processing inputs, count: {this.Inputs.Count} ...").ConfigureAwait(false))
803
using (
var
logger = await
SafeLogger
.WriteStartOperationAsync(this.Logger, "Processing reference assemblies ...").ConfigureAwait(false))
DebugLogger.cs (2)
81
await WriteMessageAsync(
SafeLogger
.GetStartOperationMessage(message, startTime), logToUI);
87
return WriteMessageAsync(
SafeLogger
.GetEndOperationMessage(startTime), logToUI);
Shared\MSBuildProj.cs (11)
161
using (
var
safeLogger = await
SafeLogger
.WriteStartOperationAsync(logger, $"Parsing project {Path.GetFileName(projectFullPath)}").ConfigureAwait(false))
693
using (await
SafeLogger
.WriteStartOperationAsync(logger, $"Saving project file: \"{this.FullPath}\"").ConfigureAwait(false))
761
using (
var
safeLogger = await
SafeLogger
.WriteStartOperationAsync(logger, "Resolving project references ...").ConfigureAwait(false))
791
using (
var
safeLogger = await
SafeLogger
.WriteStartOperationAsync(logger, "Resolving package references ...").ConfigureAwait(false))
869
using (
var
safeLogger = await
SafeLogger
.WriteStartOperationAsync(logger, $"Resolving assembly references for {this.TargetFramework} target framework ...").ConfigureAwait(false))
994
using (
var
safeLogger = await
SafeLogger
.WriteStartOperationAsync(logger, $"Resolving deps.json file ...").ConfigureAwait(false))
Shared\ProjectPropertyResolver.cs (8)
27
using (
var
safeLogger = await
SafeLogger
.WriteStartOperationAsync(logger, $"Resolving {propertyNames.Count()} project properties ...").ConfigureAwait(false))
121
using (
var
safeLogger = await
SafeLogger
.WriteStartOperationAsync(logger, "Resolving dotnet sdk version ...").ConfigureAwait(false))
141
using (
var
safeLogger = await
SafeLogger
.WriteStartOperationAsync(logger, "Resolving .NETCore SDK path ...").ConfigureAwait(false))
176
using (
var
safeLogger = await
SafeLogger
.WriteStartOperationAsync(logger, "Loading MSBuild assemblies ...").ConfigureAwait(false))
Shared\Utilities\PathHelper.cs (4)
211
using (
var
safeLogger = await
SafeLogger
.WriteStartOperationAsync(logger, $"Copying {fileName} to {destinationDir} ...").ConfigureAwait(false))
243
using (
var
safeLogger = await
SafeLogger
.WriteStartOperationAsync(logger, $"Looking for '{itemName}' up from '{workingDir}' dir ...").ConfigureAwait(false))
Shared\Utilities\ProcessRunner.cs (2)
66
using (
var
safeLogger = await
SafeLogger
.WriteStartOperationAsync(logger, $"Executing command [\"{currentDir}\"]{Environment.NewLine}>{processName} {processArgs}").ConfigureAwait(false))
Shared\Utilities\RuntimeEnvironmentHelper.cs (2)
75
using (
var
safeLogger = await
SafeLogger
.WriteStartOperationAsync(logger, "Adding svcutil NuGet feed to existing nuget.config file ...").ConfigureAwait(false))
Shared\Utilities\SafeLogger.cs (2)
34
public static async Task<
SafeLogger
> WriteStartOperationAsync(ILogger logger, string message, bool logToUI = false)
36
var
safeLogger = new SafeLogger(logger);
Tool.cs (6)
114
using (
var
safeLogger = await
SafeLogger
.WriteStartOperationAsync(options.Logger, operationMessage).ConfigureAwait(false))
222
using (await
SafeLogger
.WriteStartOperationAsync(options.Logger, "Importing metadata ...").ConfigureAwait(false))
244
using (await
SafeLogger
.WriteStartOperationAsync(options.Logger, "Processing Code DOM ...").ConfigureAwait(false))
304
using (
var
safeLogger = await
SafeLogger
.WriteStartOperationAsync(logger, "Generating svcutil params file ...").ConfigureAwait(false))