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)
57var assemblyName = new AssemblyName(_context.AssemblyName); 62_reporter.WriteError(Resources.FormatMissingEntryPoint(_context.AssemblyPath)); 117if (!string.IsNullOrEmpty(_context.Environment)) 119hostArgs.Add($"--{HostDefaults.EnvironmentKey}={_context.Environment}"); 279if (!string.IsNullOrEmpty(_context.DocumentName)) 281if (!documentNames.Contains(_context.DocumentName)) 283_reporter.WriteError(Resources.FormatDocumentNotFound(_context.DocumentName)); 287documentNames = [_context.DocumentName]; 290if (!string.IsNullOrWhiteSpace(_context.FileName) && !Regex.IsMatch(_context.FileName, "^([A-Za-z0-9-_]+)$")) 298Directory.CreateDirectory(_context.OutputDirectory); 300var targetDocumentNames = string.IsNullOrEmpty(_context.DocumentName) 302: [_context.DocumentName]; 307_context.ProjectName, 308_context.OutputDirectory, 312_context.FileName); 323var stream = File.Create(_context.FileListPath); 354if (Enum.TryParse<OpenApiSpecVersion>(_context.OpenApiVersion, out var version)) 360if (!string.IsNullOrWhiteSpace(_context.OpenApiVersion)) 362_reporter.WriteWarning(Resources.FormatInvalidOpenApiVersion(_context.OpenApiVersion));