1 write to _context
GetDocument.Insider (1)
Commands\GetDocumentCommandWorker.cs (1)
51
_context
= context ?? throw new ArgumentNullException(nameof(context));
20 references to _context
GetDocument.Insider (20)
Commands\GetDocumentCommandWorker.cs (20)
57
var assemblyName = new AssemblyName(
_context
.AssemblyName);
62
_reporter.WriteError(Resources.FormatMissingEntryPoint(
_context
.AssemblyPath));
117
if (!string.IsNullOrEmpty(
_context
.Environment))
119
hostArgs.Add($"--{HostDefaults.EnvironmentKey}={
_context
.Environment}");
279
if (!string.IsNullOrEmpty(
_context
.DocumentName))
281
if (!documentNames.Contains(
_context
.DocumentName))
283
_reporter.WriteError(Resources.FormatDocumentNotFound(
_context
.DocumentName));
287
documentNames = [
_context
.DocumentName];
290
if (!string.IsNullOrWhiteSpace(
_context
.FileName) && !Regex.IsMatch(
_context
.FileName, "^([A-Za-z0-9-_]+)$"))
298
Directory.CreateDirectory(
_context
.OutputDirectory);
300
var targetDocumentNames = string.IsNullOrEmpty(
_context
.DocumentName)
302
: [
_context
.DocumentName];
307
_context
.ProjectName,
308
_context
.OutputDirectory,
312
_context
.FileName);
323
var stream = File.Create(
_context
.FileListPath);
354
if (Enum.TryParse<OpenApiSpecVersion>(
_context
.OpenApiVersion, out var version))
360
if (!string.IsNullOrWhiteSpace(
_context
.OpenApiVersion))
362
_reporter.WriteWarning(Resources.FormatInvalidOpenApiVersion(
_context
.OpenApiVersion));