KestrelCommunicationListener Class

Definition

An AspNetCore Kestrel based communication listener for Service Fabric stateless or stateful service.

public class KestrelCommunicationListener : Microsoft.ServiceFabric.Services.Communication.AspNetCore.AspNetCoreCommunicationListener
type KestrelCommunicationListener = class
    inherit AspNetCoreCommunicationListener
Public Class KestrelCommunicationListener
Inherits AspNetCoreCommunicationListener
Inheritance
Microsoft.ServiceFabric.Services.Communication.AspNetCore.AspNetCoreCommunicationListener
KestrelCommunicationListener

Constructors

KestrelCommunicationListener(ServiceContext, Func<String,AspNetCoreCommunicationListener,IHost>)

Initializes a new instance of the KestrelCommunicationListener class using a default address with http protocol and port 0. Kestrel will dynamically bind to an unspecified, available port when port 0 is specified in url.

KestrelCommunicationListener(ServiceContext, Func<String,AspNetCoreCommunicationListener,IWebHost>)

Initializes a new instance of the KestrelCommunicationListener class using a default address with http protocol and port 0. Kestrel will dynamically bind to an unspecified, available port when port 0 is specified in url.

KestrelCommunicationListener(ServiceContext, String, Func<String,AspNetCoreCommunicationListener,IHost>)

Initializes a new instance of the KestrelCommunicationListener class.

KestrelCommunicationListener(ServiceContext, String, Func<String,AspNetCoreCommunicationListener,IWebHost>)

Initializes a new instance of the KestrelCommunicationListener class.

Methods

GetListenerUrl()

Gets url for the listener. Listener url is created using the endpointName passed in the constructor. If the endpointName was null, a default url with http protocol and port zero is returned.

Applies to