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
Show file Open project: enricosada/sln Class Usage Examples

Private Properties

Property Type Description
IsEventSerializable bool
MarkAsInactive void
VerifyActiveProxy void

Public Methods

Method 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

Method 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 method

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
return bool

InitializeLifetimeService() public method

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
return object

LogCustomEvent() public method

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

LogErrorEvent() public method

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

LogMessageEvent() public method

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

LogWarningEvent() public method

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

TaskFactoryLoggingHost() public method

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