ServiceProxy.Create<TServiceInterface>(Uri, ServicePartitionKey, TargetReplicaSelector, String) Method
Definition
Creates a proxy to communicate to the specified service using the remoted interface TServiceInterface that
the service implements.
public static TServiceInterface Create<TServiceInterface> (Uri serviceUri, Microsoft.ServiceFabric.Services.Client.ServicePartitionKey partitionKey = null, Microsoft.ServiceFabric.Services.Communication.Client.TargetReplicaSelector targetReplicaSelector = Microsoft.ServiceFabric.Services.Communication.Client.TargetReplicaSelector.PrimaryReplica, string listenerName = null) where TServiceInterface : Microsoft.ServiceFabric.Services.Remoting.IService;
static member Create : Uri * Microsoft.ServiceFabric.Services.Client.ServicePartitionKey * Microsoft.ServiceFabric.Services.Communication.Client.TargetReplicaSelector * string -> 'ServiceInterface (requires 'ServiceInterface :> Microsoft.ServiceFabric.Services.Remoting.IService)
Type Parameters
- TServiceInterface
Parameters
- serviceUri
- Uri
- partitionKey
- ServicePartitionKey
- targetReplicaSelector
- TargetReplicaSelector
- listenerName
- String
Returns
- TServiceInterface