예제 #1
0
파일: Log.cs 프로젝트: vardars/ci-factory
 /// <summary>
 /// Initializes a new instance of the <see cref="BuildEventArgs" />
 /// class for a <see cref="Task" /> level event.
 /// </summary>
 /// <param name="task">The <see cref="Task" /> that emitted the event.</param>
 public BuildEventArgs(Task task)
 {
     _project = task.Project;
     _target = task.Parent as Target;
     _task = task;
 }
예제 #2
0
 /// <summary> 
 /// Initializes an instanse of the <see cref="AssemblyResolver" /> 
 /// class in the context of the given <see cref="Task" />.
 /// </summary>
 public AssemblyResolver(Task task)
     : this()
 {
     _task = task;
 }
예제 #3
0
파일: Log.cs 프로젝트: vardars/ci-factory
 /// <summary>
 /// Initializes a new instance of the <see cref="BuildEventArgs" />
 /// class for a <see cref="Target" /> level event.
 /// </summary>
 /// <param name="target">The <see cref="Target" /> that emitted the event.</param>
 public BuildEventArgs(Target target)
 {
     _project = target.Project;
     _target = target;
     _task = null;
 }
예제 #4
0
파일: Log.cs 프로젝트: vardars/ci-factory
 /// <summary>
 /// Initializes a new instance of the <see cref="BuildEventArgs" />
 /// class for a <see cref="Project" /> level event.
 /// </summary>
 /// <param name="project">The <see cref="Project" /> that emitted the event.</param>
 public BuildEventArgs(Project project)
 {
     _project = project;
     _target = null;
     _task = null;
 }
예제 #5
0
파일: Log.cs 프로젝트: vardars/ci-factory
 /// <summary>
 /// Initializes a new instance of the <see cref="BuildEventArgs" /> 
 /// class.
 /// </summary>
 public BuildEventArgs()
 {
     _project = null;
     _target = null;
     _task = null;
 }
예제 #6
0
파일: Log.cs 프로젝트: vardars/ci-factory
 /// <summary>
 /// Initializes a new instance of the <see cref="LogWriter" /> class 
 /// for the specified <see cref="Task" /> with the specified output 
 /// level and format provider.
 /// </summary>
 /// <param name="task">Determines the indentation level.</param>
 /// <param name="outputLevel">The <see cref="Level" /> with which messages will be output to the build log.</param>
 /// <param name="formatProvider">An <see cref="IFormatProvider" /> object that controls formatting.</param>
 public LogWriter(Task task, Level outputLevel, IFormatProvider formatProvider)
     : base(formatProvider)
 {
     _task = task;
     _outputLevel = outputLevel;
 }
예제 #7
0
        /// <summary>
        /// Writes a <see cref="Task" /> task level message to the build log 
        /// with the given <see cref="Level" />.
        /// </summary>
        /// <param name="task">The <see cref="Task" /> from which the message originated.</param>
        /// <param name="messageLevel">The <see cref="Level" /> to log at.</param>
        /// <param name="message">The message to log.</param>
        public void Log(Task task, Level messageLevel, string message)
        {
            BuildEventArgs eventArgs = new BuildEventArgs(task);

            eventArgs.Message = message;
            eventArgs.MessageLevel = messageLevel;
            OnMessageLogged(eventArgs);
        }