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)
57var assemblyName = new AssemblyName(_context.AssemblyName); 62_reporter.WriteError(Resources.FormatMissingEntryPoint(_context.AssemblyPath)); 265if (!string.IsNullOrEmpty(_context.DocumentName)) 267if (!documentNames.Contains(_context.DocumentName)) 269_reporter.WriteError(Resources.FormatDocumentNotFound(_context.DocumentName)); 273documentNames = [_context.DocumentName]; 276if (!string.IsNullOrWhiteSpace(_context.FileName) && !Regex.IsMatch(_context.FileName, "^([A-Za-z0-9-_]+)$")) 284Directory.CreateDirectory(_context.OutputDirectory); 290_context.ProjectName, 291_context.OutputDirectory, 295_context.FileName); 306var stream = File.Create(_context.FileListPath); 337if (Enum.TryParse<OpenApiSpecVersion>(_context.OpenApiVersion, out var version)) 343if (!string.IsNullOrWhiteSpace(_context.OpenApiVersion)) 345_reporter.WriteWarning(Resources.FormatInvalidOpenApiVersion(_context.OpenApiVersion));