Udostępnij za pośrednictwem


ServiceRemotingExtensions.CreateServiceRemotingInstanceListeners<TStatelessService> Method

Definition

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