BuildFileContextActionWrapper.ExecuteWithTaskCanceledExceptionAsync Method

Definition

Execute a callback and report a task cancelled exception

public:
 static System::Threading::Tasks::Task<Microsoft::VisualStudio::Workspace::IFileContextActionResult ^> ^ ExecuteWithTaskCanceledExceptionAsync(Func<System::Threading::Tasks::Task<Microsoft::VisualStudio::Workspace::IFileContextActionResult ^> ^> ^ callback, Microsoft::VisualStudio::Workspace::Build::IBuildMessageService ^ buildMessageService, System::String ^ projectFile);
public static System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.IFileContextActionResult> ExecuteWithTaskCanceledExceptionAsync (Func<System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.IFileContextActionResult>> callback, Microsoft.VisualStudio.Workspace.Build.IBuildMessageService buildMessageService, string projectFile);
static member ExecuteWithTaskCanceledExceptionAsync : Func<System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.IFileContextActionResult>> * Microsoft.VisualStudio.Workspace.Build.IBuildMessageService * string -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.IFileContextActionResult>
Public Shared Function ExecuteWithTaskCanceledExceptionAsync (callback As Func(Of Task(Of IFileContextActionResult)), buildMessageService As IBuildMessageService, projectFile As String) As Task(Of IFileContextActionResult)

Parameters

callback
Func<Task<IFileContextActionResult>>

Callback to execute

buildMessageService
IBuildMessageService

The build message service to report

projectFile
String

Project file to report

Returns

Completion task

Applies to