GlobalBrokeredServiceContainer.ProfferedServiceFactory.GetProxyAsync<T> 메서드

정의

클라이언트 프록시를 통해 일부 서비스에 대한 액세스를 요청합니다.

public virtual System.Threading.Tasks.ValueTask<T?> GetProxyAsync<T> (Microsoft.ServiceHub.Framework.ServiceRpcDescriptor serviceDescriptor, Microsoft.ServiceHub.Framework.ServiceActivationOptions options, System.Threading.CancellationToken cancellationToken) where T : class;
abstract member GetProxyAsync : Microsoft.ServiceHub.Framework.ServiceRpcDescriptor * Microsoft.ServiceHub.Framework.ServiceActivationOptions * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<'T (requires 'T : null)> (requires 'T : null)
override this.GetProxyAsync : Microsoft.ServiceHub.Framework.ServiceRpcDescriptor * Microsoft.ServiceHub.Framework.ServiceActivationOptions * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<'T (requires 'T : null)> (requires 'T : null)
Public Overridable Function GetProxyAsync(Of T As Class) (serviceDescriptor As ServiceRpcDescriptor, options As ServiceActivationOptions, cancellationToken As CancellationToken) As ValueTask(Of T)

형식 매개 변수

T

만들 클라이언트 프록시의 형식입니다.

매개 변수

serviceDescriptor
ServiceRpcDescriptor

서비스의 설명자입니다.

options
ServiceActivationOptions

서비스를 활성화하는 방법을 변경하거나 서비스 생성자에 추가 데이터를 제공하는 추가 옵션입니다.

cancellationToken
CancellationToken

취소 토큰입니다.

반환

서비스와 통신하는 데 사용할 수 있는 클라이언트 프록시입니다. 또는 null 일치하는 서비스를 찾을 수 없는 경우 입니다. 반환된 instance 를 구현하는 경우 더 이상 필요하지 않은 경우 삭제해야 합니다.IDisposable

구현

적용 대상