示例#1
0
 static OperationContext()
 {
     s_operationUniqueID = Guid.NewGuid().ToString().Substring(0, 4);
     s_operationID       = new OperationID()
     {
         OpCounter = s_operationCounter, OperationId = s_operationUniqueID
     };
 }
示例#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);
 }
示例#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);
        }
示例#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);
        }
示例#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;
 }