GlobalBrokeredServiceContainer.ProfferedViewIntrinsicService.GetPipeAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GetPipeAsync(ServiceMoniker, ServiceActivationOptions, CancellationToken)
警告
Use the overload that takes a View instead.
透過 IDuplexPipe要求存取某些服務。
[System.Obsolete("Use the overload that takes a View instead.", true)]
public override System.Threading.Tasks.ValueTask<System.IO.Pipelines.IDuplexPipe?> GetPipeAsync (Microsoft.ServiceHub.Framework.ServiceMoniker serviceMoniker, Microsoft.ServiceHub.Framework.ServiceActivationOptions options, System.Threading.CancellationToken cancellationToken);
[<System.Obsolete("Use the overload that takes a View instead.", true)>]
override this.GetPipeAsync : Microsoft.ServiceHub.Framework.ServiceMoniker * Microsoft.ServiceHub.Framework.ServiceActivationOptions * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<System.IO.Pipelines.IDuplexPipe>
Public Overrides Function GetPipeAsync (serviceMoniker As ServiceMoniker, options As ServiceActivationOptions, cancellationToken As CancellationToken) As ValueTask(Of IDuplexPipe)
參數
- serviceMoniker
- ServiceMoniker
服務的Moniker。
- options
- ServiceActivationOptions
改變服務啟動方式的其他選項,或提供其他數據給服務建構函式。
- cancellationToken
- CancellationToken
取消語彙基元。
傳回
可用來與服務通訊的雙工管道;如果找不到相符的服務,則 null
為 。
當不再需要時,應該處置此專案。
- 屬性
適用於
GetPipeAsync(GlobalBrokeredServiceContainer+View, ServiceMoniker, ServiceActivationOptions, CancellationToken)
透過 IDuplexPipe要求存取某些服務。
public System.Threading.Tasks.ValueTask<System.IO.Pipelines.IDuplexPipe?> GetPipeAsync (Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer.View view, Microsoft.ServiceHub.Framework.ServiceMoniker serviceMoniker, Microsoft.ServiceHub.Framework.ServiceActivationOptions options = default, System.Threading.CancellationToken cancellationToken = default);
override this.GetPipeAsync : Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer.View * Microsoft.ServiceHub.Framework.ServiceMoniker * Microsoft.ServiceHub.Framework.ServiceActivationOptions * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<System.IO.Pipelines.IDuplexPipe>
Public Function GetPipeAsync (view As GlobalBrokeredServiceContainer.View, serviceMoniker As ServiceMoniker, Optional options As ServiceActivationOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of IDuplexPipe)
參數
用來要求此服務的檢視。
- serviceMoniker
- ServiceMoniker
服務的Moniker。
- options
- ServiceActivationOptions
改變服務啟動方式的其他選項,或提供其他數據給服務建構函式。
- cancellationToken
- CancellationToken
取消語彙基元。
傳回
可用來與服務通訊的雙工管道;如果找不到相符的服務,則 null
為 。
當不再需要時,應該處置此專案。