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; }
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; }
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; }
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; }