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); }
protected virtual void Dispose(bool managed) { AmsSocketHelper.UnsibscribeAmsSocket(IpTarget); }