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