Ejemplo n.º 1
0
        public Message(CommFacilitator facilitator)
        {
            frameSize = facilitator.frameSize;
            string   dateString;
            DateTime dateTime = DateTime.Now;

            dateString  = dateTime.Year.ToString() + dateTime.Month.ToString("D2") + dateTime.Day.ToString("D2");
            dateString += dateTime.Hour.ToString("D2") + dateTime.Minute.ToString("D2") + dateTime.Second.ToString("D2");
            string header = Constants.STX + $"1H|\\^&||{facilitator.password}|{ServiceMain.YamlSettings?.ServiceConfig?.LisId}|{ServiceMain.YamlSettings?.ServiceConfig?.Address}";

            header       += $"||{ServiceMain.YamlSettings?.ServiceConfig?.Phone}|{facilitator.GetPortDetails()}|{facilitator.receiver_id}||P|1|{dateString}";
            MessageHeader = header;
        }
Ejemplo n.º 2
0
 public LisCommState(CommFacilitator comm)
 {
     this.comm = comm;
     CommState = new IdleState(this.comm);
 }
Ejemplo n.º 3
0
 public TransEnqState(CommFacilitator comm)
 {
     this.comm = comm;
 }
Ejemplo n.º 4
0
 public RcvWaitState(CommFacilitator comm)
 {
     this.comm = comm;
 }