internal AppServiceMiddleware(string _apiPath, ApiNamesService _apiNames) { if (!string.IsNullOrWhiteSpace(_apiPath)) { apiPath = "/api/service/"; } else { apiPath = _apiPath; } ApiNames = _apiNames; }
internal AppServiceMiddleware(IServiceProvider service) { provider = service; ApiNames = provider.GetService <ApiNamesService>(); apiPath = "/api/service/"; }