public AuthorizationServerProvider(ConfigInfo configInfo, IServiceProxyProvider serviceProxyProvider
                                    , IServiceRouteProvider serviceRouteProvider
                                    , CPlatformContainer serviceProvider)
 {
     _serviceProvider      = serviceProvider;
     _serviceProxyProvider = serviceProxyProvider;
     _serviceRouteProvider = serviceRouteProvider;
     _cacheProvider        = CacheContainer.GetInstances <ICacheProvider>(AppConfig.CacheMode);
 }
Esempio n. 2
0
 public bool Connection(CacheEndpoint endpoint)
 {
     return(CacheContainer.GetInstances <ICacheClient <IDatabase> >(CacheTargetType.Redis.ToString())
            .Connection(endpoint, ConnectTimeout).IsConnected);
 }
Esempio n. 3
0
 private CouchbaseClient GetCouchbaseClient(CouchBaseEndpoint info)
 {
     return
         (CacheContainer.GetInstances <ICacheClient <CouchbaseClient> >(CacheTargetType.CouchBase.ToString())
          .GetClient(info, ConnectTimeout));
 }