共用方式為


GlobalBrokeredServiceContainer.ProfferedViewIntrinsicService.GetPipeAsync 方法

定義

多載

GetPipeAsync(ServiceMoniker, ServiceActivationOptions, CancellationToken)
已淘汰.

透過 IDuplexPipe要求存取某些服務。

GetPipeAsync(GlobalBrokeredServiceContainer+View, ServiceMoniker, ServiceActivationOptions, CancellationToken)

透過 IDuplexPipe要求存取某些服務。

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)

參數

view
GlobalBrokeredServiceContainer.View

用來要求此服務的檢視。

serviceMoniker
ServiceMoniker

服務的Moniker。

options
ServiceActivationOptions

改變服務啟動方式的其他選項,或提供其他數據給服務建構函式。

cancellationToken
CancellationToken

取消語彙基元。

傳回

可用來與服務通訊的雙工管道;如果找不到相符的服務,則 null 為 。 當不再需要時,應該處置此專案。

適用於