IActorProxyFactory.CreateActorServiceProxy Method

Definition

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 = null) where TServiceInterface : Microsoft.ServiceFabric.Services.Remoting.IService;
abstract member CreateActorServiceProxy : Uri * Microsoft.ServiceFabric.Actors.ActorId * string -> 'ServiceInterface (requires 'ServiceInterface :> Microsoft.ServiceFabric.Services.Remoting.IService)

Type Parameters

TServiceInterface

The service interface implemented by the actor service.

Parameters

serviceUri
System.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
System.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

TServiceInterface

A service proxy object that implements IServiceProxy and TServiceInterface.

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 = null) where TServiceInterface : Microsoft.ServiceFabric.Services.Remoting.IService;
abstract member 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 = null) As TServiceInterface

Type Parameters

TServiceInterface

The service interface implemented by the actor service.

Parameters

serviceUri
System.Uri

Uri of the actor service to connect to.

partitionKey
System.Int64

The key of the actor service partition to connect to.

listenerName
System.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

TServiceInterface

A service proxy object that implements IServiceProxy and TServiceInterface.

Applies to