Exemplo n.º 1
0
 internal Ams(string ipTarget, int ipPortTarget = 48898)
 {
     this.IpTarget                  = ipTarget;
     this.NotificationRequests      = new List <AdsNotification>();
     this.amsSocket                 = AmsSocketHelper.GetOrCreateAmsSocket(ipTarget, ipPortTarget);
     this.amsSocket.OnReadCallBack += new AmsSocketResponseDelegate(ReadCallback);
 }
Exemplo n.º 2
0
 protected virtual void Dispose(bool managed)
 {
     AmsSocketHelper.UnsibscribeAmsSocket(IpTarget);
 }