コード例 #1
0
 public static void Stop()
 {
     if (MrsAndProxyActivityLogger.instance != null)
     {
         MrsAndProxyActivityLogger.InternalLogRow(MrsAndProxyActivityLogger.instance.id, "ServiceStop", null, null, null, null);
         MrsAndProxyActivityLogger.instance.Dispose();
         MrsAndProxyActivityLogger.instance = null;
     }
 }
コード例 #2
0
        protected override void InternalLogActivityEvent(IActivityScope scope, ActivityEventType eventType)
        {
            List <KeyValuePair <string, object> > customData = null;

            switch (eventType)
            {
            case ActivityEventType.StartActivity:
            case ActivityEventType.ResumeActivity:
                break;

            case ActivityEventType.SuspendActivity:
            case ActivityEventType.EndActivity:
                customData = WorkloadManagementLogger.FormatWlmActivity(scope, true);
                break;

            default:
                MrsAndProxyActivityLogger.instance.SafeTraceDebug(0L, "Skip logging ActivityEvent '{0}'.", new object[]
                {
                    eventType
                });
                return;
            }
            MrsAndProxyActivityLogger.InternalLogRow(scope.ActivityId, ActivityContextLogger.ActivityEventTypeDictionary[eventType], scope.Action, scope.UserId, scope.ClientInfo, customData);
        }
コード例 #3
0
 public static MrsAndProxyActivityLogger Start()
 {
     MrsAndProxyActivityLogger.instance = new MrsAndProxyActivityLogger();
     MrsAndProxyActivityLogger.InternalLogRow(MrsAndProxyActivityLogger.instance.id, "ServiceStart", null, null, null, null);
     return(MrsAndProxyActivityLogger.instance);
 }