ActorServiceProxy.Create Method

Definition

Overloads

Create(Uri, ActorId, String)

Creates a proxy to the actor service that is hosting the specified type of actor and implementing the specified type of the service interface.

Create(Uri, Int64, String)

Creates a proxy to the actor service that is hosting the specified type of actor and implementing the specified type of the service interface.

Create<TServiceInterface>(Uri, ActorId, String)

Creates a proxy to the actor service that is hosting the specified type of actor and implementing the specified type of the service interface.

Create<TServiceInterface>(Uri, Int64, String)

Creates a proxy to the actor service that is hosting the specified type of actor and implementing the specified type of the service interface.

Create(Uri, ActorId, String)

Creates a proxy to the actor service that is hosting the specified type of actor and implementing the specified type of the service interface.

public static Microsoft.ServiceFabric.Actors.IActorService Create (Uri serviceUri, Microsoft.ServiceFabric.Actors.ActorId actorId, string listenerName = null);
static member Create : Uri * Microsoft.ServiceFabric.Actors.ActorId * string -> Microsoft.ServiceFabric.Actors.IActorService

Parameters

serviceUri
System.Uri

The URI of the actor service to connect to.

actorId
ActorId

The ID of the actor. The created proxy will be connected to the partition of the actor service hosting the 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 listener. This parameter specifies the name of the listener to connect to.

Returns

IActorService

A service proxy object that implements IServiceProxy and IActorService interfaces.

Applies to

Create(Uri, Int64, String)

Creates a proxy to the actor service that is hosting the specified type of actor and implementing the specified type of the service interface.

public static Microsoft.ServiceFabric.Actors.IActorService Create (Uri serviceUri, long partitionKey, string listenerName = null);
static member Create : Uri * int64 * string -> Microsoft.ServiceFabric.Actors.IActorService
Public Shared Function Create (serviceUri As Uri, partitionKey As Long, Optional listenerName As String = null) As IActorService

Parameters

serviceUri
System.Uri

The 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 listener. This parameter specifies the name of the listener to connect to.

Returns

IActorService

A service proxy object that implements IServiceProxy and IActorService interfaces.

Applies to

Create<TServiceInterface>(Uri, ActorId, String)

Creates a proxy to the actor service that is hosting the specified type of actor and implementing the specified type of the service interface.

public static TServiceInterface Create<TServiceInterface> (Uri serviceUri, Microsoft.ServiceFabric.Actors.ActorId actorId, string listenerName = null) where TServiceInterface : Microsoft.ServiceFabric.Services.Remoting.IService;
static member Create : 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

The URI of the actor service to connect to.

actorId
ActorId

The ID of the actor. The created proxy will be connected to the partition of the actor service hosting the 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 listener. This parameter specifies the name of the listener to connect to.

Returns

TServiceInterface

A service proxy object that implements IServiceProxy and TServiceInterface.

Applies to

Create<TServiceInterface>(Uri, Int64, String)

Creates a proxy to the actor service that is hosting the specified type of actor and implementing the specified type of the service interface.

public static TServiceInterface Create<TServiceInterface> (Uri serviceUri, long partitionKey, string listenerName = null) where TServiceInterface : Microsoft.ServiceFabric.Services.Remoting.IService;
static member Create : Uri * int64 * string -> 'ServiceInterface (requires 'ServiceInterface :> Microsoft.ServiceFabric.Services.Remoting.IService)
Public Shared Function Create(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

The 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 listener. This parameter specifies the name of the listener to connect to.

Returns

TServiceInterface

A service proxy object that implements IServiceProxy and TServiceInterface.

Applies to