Partager via


FlatTrackingData.FinalizeTLogs Method

Definition

Once tracked operations have been completed then we need to compact / finalize the Tlogs based on the success of the tracked execution. If it fails, then we clean out the TLogs. If it succeeds then we clean temporary files from the TLogs and re-write them.

public:
 static void FinalizeTLogs(bool trackedOperationsSucceeded, cli::array <Microsoft::Build::Framework::ITaskItem ^> ^ readTLogNames, cli::array <Microsoft::Build::Framework::ITaskItem ^> ^ writeTLogNames, cli::array <Microsoft::Build::Framework::ITaskItem ^> ^ trackedFilesToRemoveFromTLogs);
public static void FinalizeTLogs (bool trackedOperationsSucceeded, Microsoft.Build.Framework.ITaskItem[] readTLogNames, Microsoft.Build.Framework.ITaskItem[] writeTLogNames, Microsoft.Build.Framework.ITaskItem[] trackedFilesToRemoveFromTLogs);
static member FinalizeTLogs : bool * Microsoft.Build.Framework.ITaskItem[] * Microsoft.Build.Framework.ITaskItem[] * Microsoft.Build.Framework.ITaskItem[] -> unit
Public Shared Sub FinalizeTLogs (trackedOperationsSucceeded As Boolean, readTLogNames As ITaskItem(), writeTLogNames As ITaskItem(), trackedFilesToRemoveFromTLogs As ITaskItem())

Parameters

trackedOperationsSucceeded
Boolean

True indicates that tracked operations succeeded.

readTLogNames
ITaskItem[]

TLogs to be read.

writeTLogNames
ITaskItem[]

TLogs to be written.

trackedFilesToRemoveFromTLogs
ITaskItem[]

Tracked files to be removed from TLogs.

Remarks

Once tracked operations have been completed then we need to compact / finalize the Tlogs based on the success of the tracked execution. If it fails, then we clean out the TLogs. If it succeeds then we clean temporary files from the TLogs and re-write them.

Applies to