1 write to _context
GetDocument.Insider (1)
Commands\GetDocumentCommandWorker.cs (1)
51
_context
= context ?? throw new ArgumentNullException(nameof(context));
16 references to _context
GetDocument.Insider (16)
Commands\GetDocumentCommandWorker.cs (16)
57
var assemblyName = new AssemblyName(
_context
.AssemblyName);
62
_reporter.WriteError(Resources.FormatMissingEntryPoint(
_context
.AssemblyPath));
265
if (!string.IsNullOrEmpty(
_context
.DocumentName))
267
if (!documentNames.Contains(
_context
.DocumentName))
269
_reporter.WriteError(Resources.FormatDocumentNotFound(
_context
.DocumentName));
273
documentNames = [
_context
.DocumentName];
276
if (!string.IsNullOrWhiteSpace(
_context
.FileName) && !Regex.IsMatch(
_context
.FileName, "^([A-Za-z0-9-_]+)$"))
284
Directory.CreateDirectory(
_context
.OutputDirectory);
290
_context
.ProjectName,
291
_context
.OutputDirectory,
295
_context
.FileName);
306
var stream = File.Create(
_context
.FileListPath);
337
if (Enum.TryParse<OpenApiSpecVersion>(
_context
.OpenApiVersion, out var version))
343
if (!string.IsNullOrWhiteSpace(
_context
.OpenApiVersion))
345
_reporter.WriteWarning(Resources.FormatInvalidOpenApiVersion(
_context
.OpenApiVersion));