Пример #1
0
 public TrackerClient(string section)
 {
     TrackerClientSection tcs = (TrackerClientSection)System.Configuration.ConfigurationManager.GetSection(section);
     if (tcs == null)
         throw new TrackerException(string.Format("{0} Tracker Client Section notfound!", section));
     mNode = new Clients.SyncNode(tcs.Host, tcs.Port, tcs.Connections);
     mNode.Connect<Beetle.Clients.SyncChannel<HttpExtend.HttpPacket>>();
     mAppName = tcs.AppName;
 }
Пример #2
0
        public TrackerClient(string section)
        {
            TrackerClientSection tcs = (TrackerClientSection)System.Configuration.ConfigurationManager.GetSection(section);

            if (tcs == null)
            {
                throw new TrackerException(string.Format("{0} Tracker Client Section notfound!", section));
            }
            mNode = new Clients.SyncNode(tcs.Host, tcs.Port, tcs.Connections);
            mNode.Connect <Beetle.Clients.SyncChannel <HttpExtend.HttpPacket> >();
            mAppName = tcs.AppName;
        }
Пример #3
0
 public TrackerClient(string host, int port, string appName, int connecitons = 5)
 {
     mNode = new Clients.SyncNode(host, port, connecitons);
     mNode.Connect <Beetle.Clients.SyncChannel <HttpExtend.HttpPacket> >();
     mAppName = appName;
 }
Пример #4
0
 public TrackerClient(string host, int port,string appName,int connecitons=5)
 {
     mNode = new Clients.SyncNode(host, port, connecitons);
     mNode.Connect<Beetle.Clients.SyncChannel<HttpExtend.HttpPacket>>();
     mAppName = appName;
 }