/// <summary> /// Initializes a new instance of the <see cref="OpenApiHttpTrigger"/> class. /// </summary> /// <param name="settings"><see cref="AppSettings"/> instance.</param> /// <param name="document"><see cref="IDocument"/> instance.</param> /// <param name="ui"><see cref="ISwaggerUI"/> instance.</param> /// <param name="handler"><see cref="IOpenApiDocumentHandler"/> instance.</param> /// <param name="logger"><see cref="ILogger{OpenApiHttpTrigger}"/> instance.</param> public OpenApiHttpTrigger(AppSettings settings, IDocument document, ISwaggerUI ui, IOpenApiDocumentHandler handler, ILogger <OpenApiHttpTrigger> logger) { this._settings = settings ?? throw new ArgumentNullException(nameof(settings)); this._document = document ?? throw new ArgumentNullException(nameof(document)); this._ui = ui ?? throw new ArgumentNullException(nameof(ui)); this._handler = handler ?? throw new ArgumentNullException(nameof(handler)); this._logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public OpenApiHttpTrigger( AppSettings settings, IDocumentHelper helper, IDocument document, ISwaggerUI swaggerUi ) { this.settings = settings; this.helper = helper; this.document = document; this.swaggerUi = swaggerUi; }
/// <summary> /// Initializes a new instance of the <see cref="RenderSwaggerUIFunction"/> class. /// </summary> /// <param name="settings"><see cref="AppSettings"/> instance.</param> /// <param name="ui"><see cref="ISwaggerUI"/> instance.</param> public RenderSwaggerUIFunction(AppSettings settings, ISwaggerUI ui) { this._settings = settings; this._ui = ui; }