protected async Task <int> OnExecute(CommandLineApplication app) { if (string.IsNullOrWhiteSpace(this.Directory)) { // this shows help even if the --help option isn't specified app.ShowHelp(); return(1); } var value = new FindDependenciesModel(); var result = await this.Parent.Processor.Find(value); Console.WriteLine(JsonSerializer.Serialize(result, this.Parent.JsonOptions)); return(0); }
public async Task <object> Post(FindDependenciesModel value) { var result = await _processor.Find(value); return(Ok(result)); }