示例#1
0
        internal static TrackingContext GetInstanceFromKey(string key)
        {
            Guid guid;

            if (!TrackingContext.ComponentTrackingGuids.TryGetValue(key, out guid))
            {
                guid = Guid.NewGuid();
            }
            return(TrackingContext.GetInstance(guid, null));
        }
示例#2
0
        internal static TrackingContext GetInstanceFromKey(string key, string overrideSystemTracker)
        {
            Guid   guid;
            string str;

            if (!TrackingContext.ComponentTrackingGuids.TryGetValue(key, out guid))
            {
                guid = Guid.NewGuid();
            }
            str = (!string.IsNullOrEmpty(overrideSystemTracker) ? overrideSystemTracker : string.Empty);
            return(TrackingContext.GetInstance(guid, str));
        }
示例#3
0
 internal static TrackingContext GetInstance(Message message, bool embedRoleInformation)
 {
     return(TrackingContext.GetInstance(message, string.Empty, embedRoleInformation, null));
 }
示例#4
0
 internal static TrackingContext GetInstance(Message message, WebOperationContext webOperationContext, bool embedRoleInformation)
 {
     return(TrackingContext.GetInstance(message, string.Empty, embedRoleInformation, webOperationContext));
 }
示例#5
0
 internal static TrackingContext GetInstance(string stringTrackingId, bool embedRoleInformation)
 {
     return(TrackingContext.GetInstance(stringTrackingId, null, embedRoleInformation));
 }
示例#6
0
 internal static TrackingContext GetInstance(Guid guidTrackingId)
 {
     return(TrackingContext.GetInstance(guidTrackingId, null));
 }