ActorServiceProxy.Create 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
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 = default);
static member Create : Uri * Microsoft.ServiceFabric.Actors.ActorId * string -> Microsoft.ServiceFabric.Actors.IActorService
Public Shared Function Create (serviceUri As Uri, actorId As ActorId, Optional listenerName As String = Nothing) As IActorService
Parameters
- serviceUri
- 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
- 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
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 = default);
static member Create : Uri * int64 * string -> Microsoft.ServiceFabric.Actors.IActorService
Public Shared Function Create (serviceUri As Uri, partitionKey As Long, Optional listenerName As String = Nothing) As IActorService
Parameters
- serviceUri
- Uri
The 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 listener. This parameter specifies the name of the listener to connect to.
Returns
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 = default) where TServiceInterface : Microsoft.ServiceFabric.Services.Remoting.IService;
static member Create : Uri * Microsoft.ServiceFabric.Actors.ActorId * string -> 'ServiceInterface (requires 'ServiceInterface :> Microsoft.ServiceFabric.Services.Remoting.IService)
Public Shared Function Create(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
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
- 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
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 = default) 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 = Nothing) As TServiceInterface
Type Parameters
- TServiceInterface
The service interface implemented by the actor service.
Parameters
- serviceUri
- Uri
The 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 listener. This parameter specifies the name of the listener to connect to.
Returns
A service proxy object that implements IServiceProxy and TServiceInterface.
Applies to
Azure SDK for .NET