// Token: 0x06000B3D RID: 2877 RVA: 0x00033854 File Offset: 0x00031A54 internal static DirectoryServiceProxyPool <TClient> CreateDirectoryServiceProxyPool(string endpointName, ServiceEndpoint serviceEndpoint, Trace tracer, int maxNumberOfClientProxies, Binding defaultBinding, GetWrappedExceptionDelegate getTransientWrappedExceptionDelegate, GetWrappedExceptionDelegate getPermanentWrappedExceptionDelegate, ExEventLog.EventTuple errorEvent, bool useDisposeTracker) { ArgumentValidator.ThrowIfNull("serviceEndpoint", serviceEndpoint); ChannelFactory <TClient> factory = DirectoryServiceProxyPool <TClient> .CreateChannelFactory(endpointName, serviceEndpoint, defaultBinding, tracer); return(new DirectoryServiceProxyPool <TClient>(endpointName, serviceEndpoint.Uri.Host, tracer, maxNumberOfClientProxies, factory, getTransientWrappedExceptionDelegate, getPermanentWrappedExceptionDelegate, errorEvent, useDisposeTracker)); }
// Token: 0x06000B3E RID: 2878 RVA: 0x00033894 File Offset: 0x00031A94 internal static DirectoryServiceProxyPool <TClient> CreateDirectoryServiceProxyPool(string endpointName, ServiceEndpoint serviceEndpoint, Trace tracer, int maxNumberOfClientProxies, List <WSHttpBinding> httpBindings, GetWrappedExceptionDelegate getTransientWrappedExceptionDelegate, GetWrappedExceptionDelegate getPermanentWrappedExceptionDelegate, ExEventLog.EventTuple errorEvent, bool useDisposeTracker) { ArgumentValidator.ThrowIfNull("serviceEndpoint", serviceEndpoint); List <ChannelFactory <TClient> > list = new List <ChannelFactory <TClient> >(); foreach (Binding defaultBinding in httpBindings) { list.Add(DirectoryServiceProxyPool <TClient> .CreateChannelFactory(endpointName, serviceEndpoint, defaultBinding, tracer)); } return(new DirectoryServiceProxyPool <TClient>(endpointName, serviceEndpoint.Uri.Host, tracer, maxNumberOfClientProxies, list, getTransientWrappedExceptionDelegate, getPermanentWrappedExceptionDelegate, errorEvent, useDisposeTracker)); }
// Token: 0x06000B3B RID: 2875 RVA: 0x000337A8 File Offset: 0x000319A8 private DirectoryServiceProxyPool(string endpointName, string hostName, Trace tracer, int maxNumberOfClientProxies, List <ChannelFactory <TClient> > factoryList, GetWrappedExceptionDelegate getTransientWrappedExceptionDelegate, GetWrappedExceptionDelegate getPermanentWrappedExceptionDelegate, ExEventLog.EventTuple errorEvent, bool useDisposeTracker) : base(endpointName, hostName, maxNumberOfClientProxies, factoryList, useDisposeTracker) { ArgumentValidator.ThrowIfNull("getPermanentWrappedExceptionDelegate", getPermanentWrappedExceptionDelegate); ArgumentValidator.ThrowIfNull("getTransientWrappedExceptionDelegate", getTransientWrappedExceptionDelegate); ArgumentValidator.ThrowIfNull("errorEvent", errorEvent); this.getPermanentWrappedExceptionDelegate = getPermanentWrappedExceptionDelegate; this.getTransientWrappedExceptionDelegate = getTransientWrappedExceptionDelegate; this.errorEvent = errorEvent; this.tracer = tracer; }