Пример #1
0
 internal static IGlobalLocatorServiceReader Create(GlsCallerId glsCallerId)
 {
     if (AppConfigGlsReader.AppConfigOverrideExists())
     {
         return(new AppConfigGlsReader());
     }
     return(new LocatorServiceClientReader(glsCallerId));
 }
 internal LocatorServiceClientAdapter(GlsCallerId glsCallerId, LocatorService serviceProxy)
 {
     this.requestIdentity = new RequestIdentity
     {
         CallerId     = glsCallerId.CallerIdString,
         TrackingGuid = glsCallerId.TrackingGuid
     };
     this.serviceProxyPool = new SingletonServiceProxyPool <LocatorService>(serviceProxy);
 }
        internal LocatorServiceClientAdapter(GlsCallerId glsCallerId)
        {
            this.requestIdentity = new RequestIdentity
            {
                CallerId     = glsCallerId.CallerIdString,
                TrackingGuid = glsCallerId.TrackingGuid
            };
            WSHttpBinding wshttpBinding = new WSHttpBinding(SecurityMode.Transport)
            {
                ReceiveTimeout         = TimeSpan.FromSeconds(20.0),
                SendTimeout            = TimeSpan.FromSeconds(15.0),
                MaxBufferPoolSize      = 524288L,
                MaxReceivedMessageSize = 65536L
            };

            wshttpBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Certificate;
            ServiceEndpoint serviceEndpoint = LocatorServiceClientAdapter.LoadServiceEndpoint();

            this.serviceProxyPool = new ServiceProxyPool <LocatorService>(wshttpBinding, serviceEndpoint);
            this.endpointHostName = serviceEndpoint.Uri.Host;
        }
Пример #4
0
 public static bool IsForwardSyncCallerID(GlsCallerId callerID)
 {
     return(callerID == GlsCallerId.forwardSync_Prod || callerID == GlsCallerId.forwardSync_EMEASIP || callerID == GlsCallerId.forwardSync_CN);
 }
 // Token: 0x06000C48 RID: 3144 RVA: 0x000378C2 File Offset: 0x00035AC2
 private LocatorServiceClientWriter(GlsCallerId glsCallerId, LocatorService serviceProxy) : base(glsCallerId, serviceProxy)
 {
 }
 // Token: 0x06000C47 RID: 3143 RVA: 0x000378B9 File Offset: 0x00035AB9
 private LocatorServiceClientWriter(GlsCallerId glsCallerId) : base(glsCallerId)
 {
 }
 // Token: 0x06000C46 RID: 3142 RVA: 0x000378B0 File Offset: 0x00035AB0
 public static IGlobalLocatorServiceWriter Create(GlsCallerId glsCallerId, LocatorService serviceProxy)
 {
     return(new LocatorServiceClientWriter(glsCallerId, serviceProxy));
 }
Пример #8
0
 private LocatorServiceClientReader(GlsCallerId glsCallerId, GlsAPIReadFlag readFlag) : base(glsCallerId)
 {
     this.glsReadFlag = readFlag;
 }