public ConfigureAsyncApiGeneratorOptions( IServiceProvider serviceProvider, IOptions <AsyncApiGenOptions> asyncApiGenOptionsAccessor) { ServiceProvider = serviceProvider; AsyncApiGenOptions = asyncApiGenOptionsAccessor.Value; }
public static void AsyncApiDoc <THub>(this AsyncApiGenOptions asyncApiGenOptions, string name, Info info) { asyncApiGenOptions.AsyncApiGeneratorOptions.AsyncApiDocs.Add(name, new AsyncApiDocInfo { Info = info, AsyncApiType = typeof(THub) }); }
public static void SchemaFilter <TFilter>( this AsyncApiGenOptions asyncApiGenOptions, params object[] arguments) where TFilter : ISchemaFilter { asyncApiGenOptions.SchemaFilterDescriptors.Add(new FilterDescriptor() { Type = typeof(TFilter), Arguments = arguments }); }