Example #1
0
 internal ConnectCallback(OutgoingConnectionFactory f, bool more, ICreateConnectionCallback cb,
                          EndpointSelectionType selType)
 {
     _factory  = f;
     _hasMore  = more;
     _callback = cb;
     _selType  = selType;
 }
Example #2
0
            internal ConnectCallback(OutgoingConnectionFactory f, IReadOnlyList <Endpoint> endpoints, bool more,
                                     ICreateConnectionCallback cb, Ice.EndpointSelectionType selType)
            {
                Debug.Assert(endpoints.Count > 0);

                _factory            = f;
                _endpoints          = endpoints;
                _endpointEnumerator = _endpoints.GetEnumerator();
                _hasMoreEndpoints   = _endpointEnumerator.MoveNext();
                Debug.Assert(_hasMoreEndpoints); // even if there is only one endpoint, we have not read it yet with
                                                 // _endpointsEnumerator.Current
                _hasMore  = more;
                _callback = cb;
                _selType  = selType;
            }