C# Класс Microsoft.Build.BackEnd.TaskFactoryLoggingHost

The host allows task factories access to method to allow them to log message during the construction of the task factories.
Наследование: MarshalByRefObject, IBuildEngine
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
IsEventSerializable bool
MarkAsInactive void
VerifyActiveProxy void

Открытые методы

Метод Описание
BuildProjectFile ( string projectFileName, Array targetNames, System.Collections.IDictionary globalProperties, System.Collections.IDictionary targetOutputs ) : bool

Builds a single project file

InitializeLifetimeService ( ) : object

InitializeLifetimeService is called when the remote object is activated. This method will determine how long the lifetime for the object will be.

LogCustomEvent ( Microsoft.Build.Framework.CustomBuildEventArgs e ) : void

Logs a custom event for the current task

LogErrorEvent ( Microsoft.Build.Framework.BuildErrorEventArgs e ) : void

Logs an error event for the current task

LogMessageEvent ( Microsoft.Build.Framework.BuildMessageEventArgs e ) : void

Logs a message event for the current task

LogWarningEvent ( Microsoft.Build.Framework.BuildWarningEventArgs e ) : void

Logs a warning event for the current task

TaskFactoryLoggingHost ( bool isRunningWithMultipleNodes, Microsoft.Build.Construction.ElementLocation elementLocation, BuildLoggingContext loggingContext ) : System

Constructor

Приватные методы

Метод Описание
IsEventSerializable ( BuildEventArgs e ) : bool

Determine if the event is serializable. If we are running with multiple nodes we need to make sure the logging events are serializable. If not we need to log a warning.

MarkAsInactive ( ) : void

Indicates to the TaskHost that it is no longer needed. Called by TaskBuilder when the task using the EngineProxy is done.

VerifyActiveProxy ( ) : void

Verify the task host is active or not

Описание методов

BuildProjectFile() публичный Метод

Builds a single project file
public BuildProjectFile ( string projectFileName, Array targetNames, System.Collections.IDictionary globalProperties, System.Collections.IDictionary targetOutputs ) : bool
projectFileName string The project file name
targetNames Array The set of targets to build.
globalProperties System.Collections.IDictionary The global properties to use
targetOutputs System.Collections.IDictionary The outputs from the targets
Результат bool

InitializeLifetimeService() публичный Метод

InitializeLifetimeService is called when the remote object is activated. This method will determine how long the lifetime for the object will be.
public InitializeLifetimeService ( ) : object
Результат object

LogCustomEvent() публичный Метод

Logs a custom event for the current task
public LogCustomEvent ( Microsoft.Build.Framework.CustomBuildEventArgs e ) : void
e Microsoft.Build.Framework.CustomBuildEventArgs The event args
Результат void

LogErrorEvent() публичный Метод

Logs an error event for the current task
public LogErrorEvent ( Microsoft.Build.Framework.BuildErrorEventArgs e ) : void
e Microsoft.Build.Framework.BuildErrorEventArgs The event args
Результат void

LogMessageEvent() публичный Метод

Logs a message event for the current task
public LogMessageEvent ( Microsoft.Build.Framework.BuildMessageEventArgs e ) : void
e Microsoft.Build.Framework.BuildMessageEventArgs The event args
Результат void

LogWarningEvent() публичный Метод

Logs a warning event for the current task
public LogWarningEvent ( Microsoft.Build.Framework.BuildWarningEventArgs e ) : void
e Microsoft.Build.Framework.BuildWarningEventArgs The event args
Результат void

TaskFactoryLoggingHost() публичный Метод

Constructor
public TaskFactoryLoggingHost ( bool isRunningWithMultipleNodes, Microsoft.Build.Construction.ElementLocation elementLocation, BuildLoggingContext loggingContext ) : System
isRunningWithMultipleNodes bool
elementLocation Microsoft.Build.Construction.ElementLocation
loggingContext BuildLoggingContext
Результат System