ConnectedServiceHandler.AddServiceInstanceAsync(ConnectedServiceHandlerContext, CancellationToken) Método

Definição

Dada uma instância de serviço conectada, adicione os arquivos e SDKs necessários ao projeto para habilitar o serviço específico.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)

Parâmetros

Retornos

Task<AddServiceInstanceResult>

Retorna um Task<TResult> que contém um AddServiceInstanceResult objeto que contém informações para a pasta de serviço e a inicialização de informações de GettingStarted após a conclusão de AddServiceInstanceAsync.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.

Comentários

O agente do contexto gravará todas as mensagens de status no chamador.The context's logger will write any status messages to the caller. Isso incluirá avisos e falhas que ocorreram ao tentar adicionar um novo arquivo, referências do SDK ou injetar código.This will include warnings and failures that occurred while trying to add a new file, SDK references, or injecting code.

Aplica-se a