public FailoverHandoverInvoker(IRemoteInvokeService remoteInvokeService, IServiceCommandProvider commandProvider, ITypeConvertibleService typeConvertibleService, IBreakeRemoteInvokeService breakeRemoteInvokeService) { _remoteInvokeService = remoteInvokeService; _typeConvertibleService = typeConvertibleService; _breakeRemoteInvokeService = breakeRemoteInvokeService; _commandProvider = commandProvider; }
protected ServiceProxyBase(IRemoteInvokeService remoteInvokeService, ITypeConvertibleService typeConvertibleService, String serviceKey, CPlatformContainer serviceProvider) { _remoteInvokeService = remoteInvokeService; _typeConvertibleService = typeConvertibleService; _serviceKey = serviceKey; _serviceProvider = serviceProvider; _commandProvider = serviceProvider.GetInstances <IServiceCommandProvider>(); _breakeRemoteInvokeService = serviceProvider.GetInstances <IBreakeRemoteInvokeService>(); }
protected ServiceProxyBase(IRemoteInvokeService remoteInvokeService, ITypeConvertibleService typeConvertibleService, String serviceKey, CPlatformContainer serviceProvider) { _remoteInvokeService = remoteInvokeService; _typeConvertibleService = typeConvertibleService; _serviceKey = serviceKey; _serviceProvider = serviceProvider; _commandProvider = serviceProvider.GetInstances <IServiceCommandProvider>(); _breakeRemoteInvokeService = serviceProvider.GetInstances <IBreakeRemoteInvokeService>(); if (serviceProvider.Current.IsRegistered <IInterceptor>()) { _interceptor = serviceProvider.GetInstances <IInterceptor>(); } }
protected ServiceProxyBase(IRemoteInvokeService remoteInvokeService, ITypeConvertibleService typeConvertibleService, String serviceKey, CPlatformContainer serviceProvider) { _remoteInvokeService = remoteInvokeService; _typeConvertibleService = typeConvertibleService; _serviceKey = serviceKey; _serviceProvider = serviceProvider; _commandProvider = serviceProvider.GetInstances <IServiceCommandProvider>(); _breakeRemoteInvokeService = serviceProvider.GetInstances <IBreakeRemoteInvokeService>(); if (serviceProvider.Current.IsRegistered <IInterceptor>()) { var interceptors = serviceProvider.GetInstances <IEnumerable <IInterceptor> >(); _interceptors = interceptors.Where(p => !typeof(CacheInterceptor).IsAssignableFrom(p.GetType())); _cacheInterceptor = interceptors.Where(p => typeof(CacheInterceptor).IsAssignableFrom(p.GetType())).FirstOrDefault(); } }