Exemple #1
0
 internal void InvokeInnerPolicyForEndpointAccessBegin(Uri endpointUri)
 {
     if (_innerPolicy != null)
     {
         lock (_innerPolicyLockObj)
         {
             _innerPolicy.OnEndpointAccessStart(endpointUri);
         }
     }
 }
        public Uri GetEndpoint()
        {
            Uri chosenEndpoint;

            lock (lockObj)
            {
                chosenEndpoint = ChooseEndpointRoundRobin(_endpointIgnorePolicy);
            }

            _endpointIgnorePolicy.OnEndpointAccessStart(chosenEndpoint);

            return(chosenEndpoint);
        }