Пример #1
0
 internal static void LogPipelineExecutionDetailEvent(
     ExecutionContext executionContext,
     List <string> detail,
     string scriptName,
     string commandLine)
 {
     using (MshLog._trace.TraceMethod())
     {
         if (executionContext == null)
         {
             MshLog._trace.NewArgumentNullException(nameof(executionContext));
         }
         else
         {
             if (!MshLog.NeedToLogPipelineExecutionDetailEvent(executionContext))
             {
                 return;
             }
             LogContext logContext = MshLog.GetLogContext(executionContext, (InvocationInfo)null);
             logContext.CommandLine = commandLine;
             logContext.ScriptName  = scriptName;
             MshLog.GetLogProvider(executionContext).LogPipelineExecutionDetailEvent(logContext, detail);
         }
     }
 }
Пример #2
0
 internal static void LogPipelineExecutionDetailEvent(
     ExecutionContext executionContext,
     List <string> detail,
     InvocationInfo invocationInfo)
 {
     using (MshLog._trace.TraceMethod())
     {
         if (executionContext == null)
         {
             MshLog._trace.NewArgumentNullException(nameof(executionContext));
         }
         else
         {
             if (!MshLog.NeedToLogPipelineExecutionDetailEvent(executionContext))
             {
                 return;
             }
             MshLog.GetLogProvider(executionContext).LogPipelineExecutionDetailEvent(MshLog.GetLogContext(executionContext, invocationInfo), detail);
         }
     }
 }