ConnectedServiceHandler.AddServiceInstanceAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Given a connected service instance, add the necessary files and SDKs to the project in order to enable the given service.
public:
abstract System::Threading::Tasks::Task<Microsoft::VisualStudio::ConnectedServices::AddServiceInstanceResult ^> ^ AddServiceInstanceAsync(Microsoft::VisualStudio::ConnectedServices::ConnectedServiceHandlerContext ^ context, System::Threading::CancellationToken ct);
public abstract System.Threading.Tasks.Task<Microsoft.VisualStudio.ConnectedServices.AddServiceInstanceResult> AddServiceInstanceAsync (Microsoft.VisualStudio.ConnectedServices.ConnectedServiceHandlerContext context, System.Threading.CancellationToken ct);
abstract member AddServiceInstanceAsync : Microsoft.VisualStudio.ConnectedServices.ConnectedServiceHandlerContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.ConnectedServices.AddServiceInstanceResult>
Public MustOverride Function AddServiceInstanceAsync (context As ConnectedServiceHandlerContext, ct As CancellationToken) As Task(Of AddServiceInstanceResult)
Parameters
- context
- ConnectedServiceHandlerContext
Returns
Returns a Task<TResult> that contains a an AddServiceInstanceResult object that contains information for the service folder and launching GettingStarted information after AddServiceInstanceAsync has completed.
Remarks
The context's logger will write any status messages to the caller. This will include warnings and failures that occurred while trying to add a new file, SDK references, or injecting code.