예제 #1
0
        internal AppServiceMiddleware(string _apiPath, ApiNamesService _apiNames)
        {
            if (!string.IsNullOrWhiteSpace(_apiPath))
            {
                apiPath = "/api/service/";
            }
            else
            {
                apiPath = _apiPath;
            }

            ApiNames = _apiNames;
        }
예제 #2
0
 internal AppServiceMiddleware(IServiceProvider service)
 {
     provider = service;
     ApiNames = provider.GetService <ApiNamesService>();
     apiPath  = "/api/service/";
 }