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; }
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; }