Example #1
0
 static OperationContext()
 {
     s_operationUniqueID = Guid.NewGuid().ToString().Substring(0, 4);
     s_operationID       = new OperationID()
     {
         OpCounter = s_operationCounter, OperationId = s_operationUniqueID
     };
 }
Example #2
0
 private void CreateOperationId()
 {
     long opCounter = 0;
     lock (s_lock)
     {
         opCounter = s_operationCounter++;
     }
     OperationID operationId = new OperationID(s_operationUniqueID,opCounter);
     Add(OperationContextFieldName.OperationId, operationId);
 }
Example #3
0
        public static EventId CreateEventId(OperationID opId)
        {
            EventId eventId = new EventId();

            if (opId != null)
            {
                eventId._eventUniqueId    = opId.OperationId;
                eventId._operationCounter = opId.OpCounter;
            }
            return(eventId);
        }
Example #4
0
        private void CreateOperationId()
        {
            long opCounter = 0;

            lock (s_lock)
            {
                opCounter = s_operationCounter++;
            }
            OperationID operationId = new OperationID(s_operationUniqueID, opCounter);

            Add(OperationContextFieldName.OperationId, operationId);
        }
Example #5
0
 public static EventId CreateEventId(OperationID opId)
 {
     EventId eventId = new EventId();
     if (opId != null)
     {
         eventId._eventUniqueId = opId.OperationId;
         eventId._operationCounter = opId.OpCounter;
     }
     return eventId;
 }