GlobalBrokeredServiceContainer.ProfferedViewIntrinsicService.GetProxyAsync 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.
Overloads
GetProxyAsync<T>(ServiceRpcDescriptor, ServiceActivationOptions, CancellationToken) |
Obsolete.
Requests access to some service through a client proxy. |
GetProxyAsync<T>(GlobalBrokeredServiceContainer+View, ServiceRpcDescriptor, ServiceActivationOptions, CancellationToken) |
Requests access to some service through a client proxy. |
GetProxyAsync<T>(ServiceRpcDescriptor, ServiceActivationOptions, CancellationToken)
Caution
Use the overload that takes a View instead.
Requests access to some service through a client proxy.
[System.Obsolete("Use the overload that takes a View instead.", true)]
public override System.Threading.Tasks.ValueTask<T?> GetProxyAsync<T> (Microsoft.ServiceHub.Framework.ServiceRpcDescriptor serviceDescriptor, Microsoft.ServiceHub.Framework.ServiceActivationOptions options, System.Threading.CancellationToken cancellationToken) where T : class;
[<System.Obsolete("Use the overload that takes a View instead.", true)>]
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 Overrides Function GetProxyAsync(Of T As Class) (serviceDescriptor As ServiceRpcDescriptor, options As ServiceActivationOptions, cancellationToken As CancellationToken) As ValueTask(Of T)
Type Parameters
- T
The type of client proxy to create.
Parameters
- serviceDescriptor
- ServiceRpcDescriptor
An descriptor of the service.
- options
- ServiceActivationOptions
Additional options that alter how the service may be activated or provide additional data to the service constructor.
- cancellationToken
- CancellationToken
A cancellation token.
Returns
The client proxy that may be used to communicate with the service; or null
if no matching service could be found.
This should be disposed when no longer required if the instance returned implements IDisposable.
- Attributes
Applies to
GetProxyAsync<T>(GlobalBrokeredServiceContainer+View, ServiceRpcDescriptor, ServiceActivationOptions, CancellationToken)
Requests access to some service through a client proxy.
public System.Threading.Tasks.ValueTask<T?> GetProxyAsync<T> (Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer.View view, Microsoft.ServiceHub.Framework.ServiceRpcDescriptor serviceDescriptor, Microsoft.ServiceHub.Framework.ServiceActivationOptions options = default, System.Threading.CancellationToken cancellationToken = default) where T : class;
override this.GetProxyAsync : Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer.View * Microsoft.ServiceHub.Framework.ServiceRpcDescriptor * Microsoft.ServiceHub.Framework.ServiceActivationOptions * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<'T (requires 'T : null)> (requires 'T : null)
Public Function GetProxyAsync(Of T As Class) (view As GlobalBrokeredServiceContainer.View, serviceDescriptor As ServiceRpcDescriptor, Optional options As ServiceActivationOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of T)
Type Parameters
- T
The type of client proxy to create.
Parameters
The view used to request this service.
- serviceDescriptor
- ServiceRpcDescriptor
An descriptor of the service.
- options
- ServiceActivationOptions
Additional options that alter how the service may be activated or provide additional data to the service constructor.
- cancellationToken
- CancellationToken
A cancellation token.
Returns
The client proxy that may be used to communicate with the service; or null
if no matching service could be found.
This should be disposed when no longer required if the instance returned implements IDisposable.