Esempio n. 1
0
        public ESBService(int sNo, bool supportTcpServiceRidrect = false, bool supportUdpServiceRedirect = false)
            : base(ESBConfig.ReadConfig().ESBServer, ESBConfig.ReadConfig().ESBPort, false)
        {
            this.ServiceNo      = sNo;
            this.BeferLogout   += this.UnRegisterService;
            this.OnClientReset += ESBService_OnClientReset;

            this.SupportTcpServiceRidrect  = supportTcpServiceRidrect;
            this.SupportUDPServiceRedirect = supportUdpServiceRedirect;
        }
Esempio n. 2
0
 internal ESBClient()
     : base(ESBConfig.ReadConfig().ESBServer, ESBConfig.ReadConfig().ESBPort, ESBConfig.ReadConfig().IsSecurity, ESBConfig.ReadConfig().AutoStart)
 {
 }