public HSMSPort(HSMSParameters aItemCfg, string name) { this.syncObject = new object(); this.syncNeedReplyObject = new object(); this.mNeedReplyMsg = new Dictionary <long, SECSMessage>(); this.name = ""; this.syncSystemBytes = new object(); this.portCfg = aItemCfg; this.name = name; }
public SECSPort(string name) { this.Name = name; if (string.IsNullOrEmpty(this.name)) { this.name = "SECSPORT" + SECSUtility.Now(); } this.secs1Para = new SECS1Parameters(); this.hsmsPara = new HSMSParameters(); this.hsmsPort = new HSMSPort(); this.secs1Port = new SECS1Port(); }