コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OpenApiHttpTrigger"/> class.
 /// </summary>
 /// <param name="openApiDoc"><see cref="IRenderOpeApiDocumentFunction"/> instance.</param>
 /// <param name="swaggerUi"><see cref="IRenderSwaggerUIFunction"/> instance.</param>
 public OpenApiHttpTrigger(IRenderOpeApiDocumentFunction openApiDoc, IRenderSwaggerUIFunction swaggerUi)
 {
     this._openApiDoc = openApiDoc ?? throw new ArgumentNullException(nameof(openApiDoc));
     this._swaggerUi  = swaggerUi ?? throw new ArgumentNullException(nameof(swaggerUi));
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OpenApiHttpTrigger"/> class.
 /// </summary>
 /// <param name="docFunction"><see cref="IRenderOpeApiDocumentFunction"/> instance.</param>
 /// <param name="suiFunction"><see cref="IRenderSwaggerUIFunction"/> instance.</param>
 public OpenApiHttpTrigger(IRenderOpeApiDocumentFunction docFunction, IRenderSwaggerUIFunction suiFunction)
 {
     this._docFunction = docFunction ?? throw new ArgumentNullException(nameof(docFunction));
     this._suiFunction = suiFunction ?? throw new ArgumentNullException(nameof(suiFunction));
 }