Esempio n. 1
0
 public Packet SetTimestamp(Timestamp timestamp)
 {
     Timestamp = new HeaderProperty <Timestamp>(timestamp, "timestamp", true);
     return(this);
 }
Esempio n. 2
0
        public Packet(Operation operation, Status status, Guid sessionId, int clientId, Timestamp timestamp = null)
        {
            SetOperation(operation);
            SetStatus(status);
            SetClientId(clientId);
            SetSessionId(sessionId);
            if (timestamp == null)
            {
                timestamp = new Timestamp(DateTime.UtcNow);
            }
            SetTimestamp(timestamp);


            DestinationId = new HeaderProperty <int>();
            SourceId      = new HeaderProperty <int>();
            Message       = new HeaderProperty <string>();
        }