C# Class 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.
Inheritance: MarshalByRefObject, IBuildEngine
Afficher le fichier Open project: enricosada/sln Class Usage Examples

Private Properties

Свойство Type Description
IsEventSerializable bool
MarkAsInactive void
VerifyActiveProxy void

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

BuildProjectFile() public méthode

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
Résultat bool

InitializeLifetimeService() public méthode

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
Résultat object

LogCustomEvent() public méthode

Logs a custom event for the current task
public LogCustomEvent ( Microsoft.Build.Framework.CustomBuildEventArgs e ) : void
e Microsoft.Build.Framework.CustomBuildEventArgs The event args
Résultat void

LogErrorEvent() public méthode

Logs an error event for the current task
public LogErrorEvent ( Microsoft.Build.Framework.BuildErrorEventArgs e ) : void
e Microsoft.Build.Framework.BuildErrorEventArgs The event args
Résultat void

LogMessageEvent() public méthode

Logs a message event for the current task
public LogMessageEvent ( Microsoft.Build.Framework.BuildMessageEventArgs e ) : void
e Microsoft.Build.Framework.BuildMessageEventArgs The event args
Résultat void

LogWarningEvent() public méthode

Logs a warning event for the current task
public LogWarningEvent ( Microsoft.Build.Framework.BuildWarningEventArgs e ) : void
e Microsoft.Build.Framework.BuildWarningEventArgs The event args
Résultat void

TaskFactoryLoggingHost() public méthode

Constructor
public TaskFactoryLoggingHost ( bool isRunningWithMultipleNodes, Microsoft.Build.Construction.ElementLocation elementLocation, BuildLoggingContext loggingContext ) : System
isRunningWithMultipleNodes bool
elementLocation Microsoft.Build.Construction.ElementLocation
loggingContext BuildLoggingContext
Résultat System