private bool RequestIsForInjectedResource(string routePath, SwaggerUiConfig swaggerUiConfig, out InjectedResourceDescriptor injectedResourceDescriptor) { injectedResourceDescriptor = swaggerUiConfig.CustomScripts .Union(swaggerUiConfig.CustomStylesheets) .FirstOrDefault(desc => desc.RelativePath == routePath); return injectedResourceDescriptor != null; }
public SwaggerUiConfigFilter(Stream ouputStream, SwaggerUiConfig swaggerUiConfig) { _ouputStream = ouputStream; _swaggerUiConfig = swaggerUiConfig; }