WcfCommunicationListener<TServiceContract> Class
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.
A Windows Communication Foundation based listener for Service Fabric based stateless or stateful service.
public class WcfCommunicationListener<TServiceContract> : Microsoft.ServiceFabric.Services.Communication.Runtime.ICommunicationListener
type WcfCommunicationListener<'ServiceContract> = class
interface ICommunicationListener
Public Class WcfCommunicationListener(Of TServiceContract)
Implements ICommunicationListener
Type Parameters
- TServiceContract
Type of the WCF service contract.
- Inheritance
-
WcfCommunicationListener<TServiceContract>
- Implements
Constructors
WcfCommunicationListener<TServiceContract>(ServiceContext, TServiceContract) |
Initializes a new instance of the WcfCommunicationListener<TServiceContract> class that uses default binding and default endpoint address. |
WcfCommunicationListener<TServiceContract>(ServiceContext, TServiceContract, Binding, EndpointAddress) |
Initializes a new instance of the WcfCommunicationListener<TServiceContract> class that uses specified listener binding and endpoint address derived from the specified endpoint address. |
WcfCommunicationListener<TServiceContract>(ServiceContext, TServiceContract, Binding, String) |
Initializes a new instance of the WcfCommunicationListener<TServiceContract> class that uses specified listener binding and endpoint address derived from the specified endpoint resource name. |
WcfCommunicationListener<TServiceContract>(ServiceContext, Type, Binding, EndpointAddress) |
Initializes a new instance of the WcfCommunicationListener<TServiceContract> class that uses specified listener binding and endpoint address derived from the specified endpoint address. |
WcfCommunicationListener<TServiceContract>(ServiceContext, Type, Binding, String) |
Initializes a new instance of the WcfCommunicationListener<TServiceContract> class that uses specified listener binding and endpoint address derived from the specified endpoint resource name. |
Properties
ServiceHost |
Gets the ServiceHost used by this listener to host the WCF service implementation. |
Explicit Interface Implementations
ICommunicationListener.Abort() |
This method causes the communication listener to close. Close is a terminal state and this method causes the transition to close ungracefully. Any outstanding operations (including close) should be canceled when this method is called. |
ICommunicationListener.CloseAsync(CancellationToken) |
This method causes the communication listener to close. Close is a terminal state and this method allows the communication listener to transition to this state in a graceful manner. |
ICommunicationListener.OpenAsync(CancellationToken) |
This method causes the communication listener to be opened. Once the Open completes, the communication listener becomes usable - accepts and sends messages. |
Applies to
Azure SDK for .NET