Share via


WcfCommunicationListener<TServiceContract> Constructors

Definition

Overloads

WcfCommunicationListener<TServiceContract>(ServiceContext, TServiceContract)

Initializes a new instance of the WcfCommunicationListener<TServiceContract> class that uses default binding and default endpoint address.

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.

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, TServiceContract)

Initializes a new instance of the WcfCommunicationListener<TServiceContract> class that uses default binding and default endpoint address.

public WcfCommunicationListener (System.Fabric.ServiceContext serviceContext, TServiceContract wcfServiceObject);
new Microsoft.ServiceFabric.Services.Communication.Wcf.Runtime.WcfCommunicationListener<'ServiceContract> : System.Fabric.ServiceContext * 'ServiceContract -> Microsoft.ServiceFabric.Services.Communication.Wcf.Runtime.WcfCommunicationListener<'ServiceContract>
Public Sub New (serviceContext As ServiceContext, wcfServiceObject As TServiceContract)

Parameters

serviceContext
ServiceContext

The context of the service for which this communication listener is being constructed.

wcfServiceObject
TServiceContract

WCF service implementing the specified WCF service contract.

Remarks

The default listener binding is created using CreateTcpListenerBinding(Int64, TimeSpan, TimeSpan) method.

The default endpoint address is created using the endpoint resource defined in the service manifest. The name of the endpoint resource is derived from the WCF service contract type using GetEndpointName(Type) method. If matching endpoint resource is not found in the service manifest, a default endpoint resource definition with port zero is used.

Applies to

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.

public WcfCommunicationListener (System.Fabric.ServiceContext serviceContext, Type wcfServiceType, System.ServiceModel.Channels.Binding listenerBinding = default, System.ServiceModel.EndpointAddress address = default);
new Microsoft.ServiceFabric.Services.Communication.Wcf.Runtime.WcfCommunicationListener<'ServiceContract> : System.Fabric.ServiceContext * Type * System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress -> Microsoft.ServiceFabric.Services.Communication.Wcf.Runtime.WcfCommunicationListener<'ServiceContract>
Public Sub New (serviceContext As ServiceContext, wcfServiceType As Type, Optional listenerBinding As Binding = Nothing, Optional address As EndpointAddress = Nothing)

Parameters

serviceContext
ServiceContext

The context of the service for which this communication listener is being constructed.

wcfServiceType
Type

Type of WCF service implementing the specified WCF service contract.

listenerBinding
Binding

The binding to use for the WCF endpoint. If the listenerBinding is not specified or it is null, a default listener binding is created using CreateTcpListenerBinding(Int64, TimeSpan, TimeSpan) method.

address
EndpointAddress

The listen address for the WCF endpoint. If the address is not specified or it is null, a default address is created by looking up the endpoint resource from the service manifest. The endpoint resource name is derived from the WCF service contract type using GetEndpointName(Type) method. If matching endpoint resource is not found in the service manifest, a default endpoint resource definition with port zero is used.

Applies to

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.

public WcfCommunicationListener (System.Fabric.ServiceContext serviceContext, Type wcfServiceType, System.ServiceModel.Channels.Binding listenerBinding = default, string endpointResourceName = default);
new Microsoft.ServiceFabric.Services.Communication.Wcf.Runtime.WcfCommunicationListener<'ServiceContract> : System.Fabric.ServiceContext * Type * System.ServiceModel.Channels.Binding * string -> Microsoft.ServiceFabric.Services.Communication.Wcf.Runtime.WcfCommunicationListener<'ServiceContract>
Public Sub New (serviceContext As ServiceContext, wcfServiceType As Type, Optional listenerBinding As Binding = Nothing, Optional endpointResourceName As String = Nothing)

Parameters

serviceContext
ServiceContext

The context of the service for which this communication listener is being constructed.

wcfServiceType
Type

Type of WCF service implementing the specified WCF service contract.

listenerBinding
Binding

The binding to use for the WCF endpoint. If the listenerBinding is not specified or it is null, a default listener binding is created using CreateTcpListenerBinding(Int64, TimeSpan, TimeSpan) method.

endpointResourceName
String

The name of the endpoint resource defined in the service manifest that should be used to create the address for the listener. If the endpointResourceName is not specified or it is null, its name is derived from the WCF service contract type using GetEndpointName(Type) method. If matching endpoint resource is not found in the service manifest, a default endpoint resource definition with port zero is used.

Applies to

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.

public WcfCommunicationListener (System.Fabric.ServiceContext serviceContext, TServiceContract wcfServiceObject, System.ServiceModel.Channels.Binding listenerBinding = default, System.ServiceModel.EndpointAddress address = default);
new Microsoft.ServiceFabric.Services.Communication.Wcf.Runtime.WcfCommunicationListener<'ServiceContract> : System.Fabric.ServiceContext * 'ServiceContract * System.ServiceModel.Channels.Binding * System.ServiceModel.EndpointAddress -> Microsoft.ServiceFabric.Services.Communication.Wcf.Runtime.WcfCommunicationListener<'ServiceContract>
Public Sub New (serviceContext As ServiceContext, wcfServiceObject As TServiceContract, Optional listenerBinding As Binding = Nothing, Optional address As EndpointAddress = Nothing)

Parameters

serviceContext
ServiceContext

The context of the service for which this communication listener is being constructed.

wcfServiceObject
TServiceContract

WCF service implementing the specified WCF service contract.

listenerBinding
Binding

The binding to use for the WCF endpoint. If the listenerBinding is not specified or it is null, a default listener binding is created using CreateTcpListenerBinding(Int64, TimeSpan, TimeSpan) method.

address
EndpointAddress

The listen address for the WCF endpoint. If the address is not specified or it is null, a default address is created by looking up the endpoint resource from the service manifest. The endpoint resource name is derived from the WCF service contract type using GetEndpointName(Type) method. If matching endpoint resource is not found in the service manifest, a default endpoint resource definition with port zero is used.

Applies to

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.

public WcfCommunicationListener (System.Fabric.ServiceContext serviceContext, TServiceContract wcfServiceObject, System.ServiceModel.Channels.Binding listenerBinding = default, string endpointResourceName = default);
new Microsoft.ServiceFabric.Services.Communication.Wcf.Runtime.WcfCommunicationListener<'ServiceContract> : System.Fabric.ServiceContext * 'ServiceContract * System.ServiceModel.Channels.Binding * string -> Microsoft.ServiceFabric.Services.Communication.Wcf.Runtime.WcfCommunicationListener<'ServiceContract>
Public Sub New (serviceContext As ServiceContext, wcfServiceObject As TServiceContract, Optional listenerBinding As Binding = Nothing, Optional endpointResourceName As String = Nothing)

Parameters

serviceContext
ServiceContext

The context of the service for which this communication listener is being constructed.

wcfServiceObject
TServiceContract

WCF service implementing the specified WCF service contract.

listenerBinding
Binding

The binding to use for the WCF endpoint. If the listenerBinding is not specified or it is null, a default listener binding is created using CreateTcpListenerBinding(Int64, TimeSpan, TimeSpan) method.

endpointResourceName
String

The name of the endpoint resource defined in the service manifest that should be used to create the address for the listener. If the endpointResourceName is not specified or it is null, its name is derived from the WCF service contract type using GetEndpointName(Type) method. If matching endpoint resource is not found in the service manifest, a default endpoint resource definition with port zero is used.

Applies to