/// <summary>
        /// Constructor
        /// </summary>
        /// <param name="args"></param>
        public StaticChannelProvider(RemoteServiceProviderArgs args)
        {
            _args = args;

            // add a node for each URL, ensuring that the primary is the first entry in the list
            _nodes.Add(new Node(_args.BaseUrl));
            if (!string.IsNullOrEmpty(_args.FailoverBaseUrl))
            {
                _nodes.Add(new Node(_args.FailoverBaseUrl));
            }
        }
Beispiel #2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="args"></param>
 protected RemoteServiceProviderBase(RemoteServiceProviderArgs args)
     : this(new StaticChannelProvider(args), args.UserCredentialsProvider, !string.IsNullOrEmpty(args.FailoverBaseUrl))
 {
 }