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