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
파일 보기 프로젝트 열기: enricosada/sln 1 사용 예제들

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