ServiceRemotingExtensions.CreateServiceRemotingReplicaListeners<TStatefulService> 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.
An extension method that creates an IServiceRemotingListener for a stateful service implementation.
public static System.Collections.Generic.IEnumerable<Microsoft.ServiceFabric.Services.Communication.Runtime.ServiceReplicaListener> CreateServiceRemotingReplicaListeners<TStatefulService> (this TStatefulService serviceImplementation) where TStatefulService : Microsoft.ServiceFabric.Services.Runtime.StatefulServiceBase, Microsoft.ServiceFabric.Services.Remoting.IService;
static member CreateServiceRemotingReplicaListeners : 'StatefulService -> seq<Microsoft.ServiceFabric.Services.Communication.Runtime.ServiceReplicaListener> (requires 'StatefulService :> Microsoft.ServiceFabric.Services.Runtime.StatefulServiceBase and 'StatefulService :> Microsoft.ServiceFabric.Services.Remoting.IService)
<Extension()>
Public Function CreateServiceRemotingReplicaListeners(Of TStatefulService As {StatefulServiceBase, IService}) (serviceImplementation As TStatefulService) As IEnumerable(Of ServiceReplicaListener)
Type Parameters
- TStatefulService
Type constraint on the service implementation. The service implementation must derive from StatefulServiceBase and implement one or more interfaces that derive from IService interface.
Parameters
- serviceImplementation
- TStatefulService
A stateful service implementation.
Returns
A IServiceRemotingListener communication listener that remotes the interfaces deriving from IService interface.
Applies to
Azure SDK for .NET