コード例 #1
0
 public JsonRpcSwaggerProvider(
     ISchemaGenerator schemaGenerator,
     IXmlDocumentationService xmlDocumentationService,
     IOptions <SwaggerConfiguration> swaggerOptions,
     IServiceScopeFactory scopeFactory
     )
 {
     this.schemaGenerator         = schemaGenerator;
     this.swagerOptions           = swaggerOptions.Value;
     this.namePolicy              = swaggerOptions.Value.NamingPolicy;
     this.scopeFactory            = scopeFactory;
     this.xmlDocumentationService = xmlDocumentationService;
 }
コード例 #2
0
 public JsonRpcSwaggerProvider(
     ISchemaGenerator schemaGenerator,
     IRpcMethodProvider methodProvider,
     IXmlDocumentationService xmlDocumentationService,
     IOptions <SwaggerConfiguration> swaggerOptions
     )
 {
     this.schemaGenerator         = schemaGenerator;
     this.swagerOptions           = swaggerOptions.Value;
     this.namePolicy              = swaggerOptions.Value.NamingPolicy;
     this.methodProvider          = methodProvider;
     this.xmlDocumentationService = xmlDocumentationService;
 }