/// <summary>
        /// Constructor.
        /// </summary>
        protected RemoteServiceProviderBase(IChannelProvider channelProvider, IUserCredentialsProvider userCredentialsProvider, bool supportFailover)
        {
            _channelProvider         = channelProvider;
            _userCredentialsProvider = userCredentialsProvider;
            _proxyGenerator          = new ProxyGenerator();

            _responseCachingAdvice = new ResponseCachingClientSideAdvice();
            _failoverAdvice        = supportFailover ? new FailoverClientAdvice(this) : null;
        }
Esempio n. 2
0
 public LoginService(IUserCredentialsProvider ucp)
 {
     _userCredentialsProvider = ucp;
 }
Esempio n. 3
0
 public void RegisterUserCredentialsProvider(IUserCredentialsProvider userCredentialsProvider)
 {
     _userCredentialsProvider = userCredentialsProvider;
 }