ActorProxyFactory.CreateActorServiceProxy 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
CreateActorServiceProxy<TServiceInterface>(Uri, ActorId, String) |
Create a proxy to the actor service that is hosting the specified actor id and implementing specified type of the service interface. |
CreateActorServiceProxy<TServiceInterface>(Uri, Int64, String) |
Create a proxy to the actor service that is hosting the specified actor id and implementing specified type of the service interface. |
CreateActorServiceProxy<TServiceInterface>(Uri, ActorId, String)
Create a proxy to the actor service that is hosting the specified actor id and implementing specified type of the service interface.
public TServiceInterface CreateActorServiceProxy<TServiceInterface> (Uri serviceUri, Microsoft.ServiceFabric.Actors.ActorId actorId, string listenerName = default) where TServiceInterface : Microsoft.ServiceFabric.Services.Remoting.IService;
abstract member CreateActorServiceProxy : Uri * Microsoft.ServiceFabric.Actors.ActorId * string -> 'ServiceInterface (requires 'ServiceInterface :> Microsoft.ServiceFabric.Services.Remoting.IService)
override this.CreateActorServiceProxy : Uri * Microsoft.ServiceFabric.Actors.ActorId * string -> 'ServiceInterface (requires 'ServiceInterface :> Microsoft.ServiceFabric.Services.Remoting.IService)
Public Function CreateActorServiceProxy(Of TServiceInterface As IService) (serviceUri As Uri, actorId As ActorId, Optional listenerName As String = Nothing) As TServiceInterface
Type Parameters
- TServiceInterface
The service interface implemented by the actor service.
Parameters
- serviceUri
- Uri
Uri of the actor service to connect to.
- actorId
- ActorId
Id of the actor. The created proxy will be connected to the partition of the actor service hosting actor with this id.
- listenerName
- String
By default an actor service has only one listener for clients to connect to and communicate with. However it is possible to configure an actor service with more than one listeners, the listenerName parameter specifies the name of the listener to connect to.
Returns
A service proxy object that implements IServiceProxy and TServiceInterface.
Implements
Applies to
CreateActorServiceProxy<TServiceInterface>(Uri, Int64, String)
Create a proxy to the actor service that is hosting the specified actor id and implementing specified type of the service interface.
public TServiceInterface CreateActorServiceProxy<TServiceInterface> (Uri serviceUri, long partitionKey, string listenerName = default) where TServiceInterface : Microsoft.ServiceFabric.Services.Remoting.IService;
abstract member CreateActorServiceProxy : Uri * int64 * string -> 'ServiceInterface (requires 'ServiceInterface :> Microsoft.ServiceFabric.Services.Remoting.IService)
override this.CreateActorServiceProxy : Uri * int64 * string -> 'ServiceInterface (requires 'ServiceInterface :> Microsoft.ServiceFabric.Services.Remoting.IService)
Public Function CreateActorServiceProxy(Of TServiceInterface As IService) (serviceUri As Uri, partitionKey As Long, Optional listenerName As String = Nothing) As TServiceInterface
Type Parameters
- TServiceInterface
The service interface implemented by the actor service.
Parameters
- serviceUri
- Uri
Uri of the actor service to connect to.
- partitionKey
- Int64
The key of the actor service partition to connect to.
- listenerName
- String
By default an actor service has only one listener for clients to connect to and communicate with. However it is possible to configure an actor service with more than one listeners, the listenerName parameter specifies the name of the listener to connect to.
Returns
A service proxy object that implements IServiceProxy and TServiceInterface.
Implements
Applies to
Azure SDK for .NET