KestrelCommunicationListener Constructors

Definition

Overloads

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, 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, String, Func<String,AspNetCoreCommunicationListener,IWebHost>)

Initializes a new instance of the KestrelCommunicationListener class.

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

Initializes a new instance of the KestrelCommunicationListener class.

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.

public KestrelCommunicationListener (System.Fabric.ServiceContext serviceContext, Func<string,Microsoft.ServiceFabric.Services.Communication.AspNetCore.AspNetCoreCommunicationListener,Microsoft.AspNetCore.Hosting.IWebHost> build);
new Microsoft.ServiceFabric.Services.Communication.AspNetCore.KestrelCommunicationListener : System.Fabric.ServiceContext * Func<string, Microsoft.ServiceFabric.Services.Communication.AspNetCore.AspNetCoreCommunicationListener, Microsoft.AspNetCore.Hosting.IWebHost> -> Microsoft.ServiceFabric.Services.Communication.AspNetCore.KestrelCommunicationListener
Public Sub New (serviceContext As ServiceContext, build As Func(Of String, AspNetCoreCommunicationListener, IWebHost))

Parameters

serviceContext
ServiceContext

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

build
Func<String,Microsoft.ServiceFabric.Services.Communication.AspNetCore.AspNetCoreCommunicationListener,IWebHost>

Delegate to build Microsoft.AspNetCore.Hosting.IWebHost, endpoint url generated by the listener is given as input to this delegate. This gives the flexibility to change the url before creating Microsoft.AspNetCore.Hosting.IWebHost if needed.

Applies to

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.

public KestrelCommunicationListener (System.Fabric.ServiceContext serviceContext, Func<string,Microsoft.ServiceFabric.Services.Communication.AspNetCore.AspNetCoreCommunicationListener,Microsoft.Extensions.Hosting.IHost> build);
new Microsoft.ServiceFabric.Services.Communication.AspNetCore.KestrelCommunicationListener : System.Fabric.ServiceContext * Func<string, Microsoft.ServiceFabric.Services.Communication.AspNetCore.AspNetCoreCommunicationListener, Microsoft.Extensions.Hosting.IHost> -> Microsoft.ServiceFabric.Services.Communication.AspNetCore.KestrelCommunicationListener
Public Sub New (serviceContext As ServiceContext, build As Func(Of String, AspNetCoreCommunicationListener, IHost))

Parameters

serviceContext
ServiceContext

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

build
Func<String,Microsoft.ServiceFabric.Services.Communication.AspNetCore.AspNetCoreCommunicationListener,IHost>

Delegate to build Microsoft.Extensions.Hosting.IHost, endpoint url generated by the listener is given as input to this delegate. This gives the flexibility to change the url before creating Microsoft.Extensions.Hosting.IHost if needed.

Applies to

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

Initializes a new instance of the KestrelCommunicationListener class.

public KestrelCommunicationListener (System.Fabric.ServiceContext serviceContext, string endpointName, Func<string,Microsoft.ServiceFabric.Services.Communication.AspNetCore.AspNetCoreCommunicationListener,Microsoft.AspNetCore.Hosting.IWebHost> build);
new Microsoft.ServiceFabric.Services.Communication.AspNetCore.KestrelCommunicationListener : System.Fabric.ServiceContext * string * Func<string, Microsoft.ServiceFabric.Services.Communication.AspNetCore.AspNetCoreCommunicationListener, Microsoft.AspNetCore.Hosting.IWebHost> -> Microsoft.ServiceFabric.Services.Communication.AspNetCore.KestrelCommunicationListener
Public Sub New (serviceContext As ServiceContext, endpointName As String, build As Func(Of String, AspNetCoreCommunicationListener, IWebHost))

Parameters

serviceContext
ServiceContext

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

endpointName
String

Name of endpoint resource defined in service manifest that should be used to create the address for listener. Protocol and port specified in this endpoint is used to create the url. If the endpointName is null, a default address with http protocol and port 0 will be used. Kestrel will dynamically bind to an unspecified, available port when port 0 is specified in url. If the specified endpointName is not found in service manifest, an InvalidOperationException indicating this will be thrown.

build
Func<String,Microsoft.ServiceFabric.Services.Communication.AspNetCore.AspNetCoreCommunicationListener,IWebHost>

Delegate to build Microsoft.AspNetCore.Hosting.IWebHost, endpoint url generated by the listener is given as input to this delegate. This gives the flexibility to change the url before creating Microsoft.AspNetCore.Hosting.IWebHost if needed.

Applies to

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

Initializes a new instance of the KestrelCommunicationListener class.

public KestrelCommunicationListener (System.Fabric.ServiceContext serviceContext, string endpointName, Func<string,Microsoft.ServiceFabric.Services.Communication.AspNetCore.AspNetCoreCommunicationListener,Microsoft.Extensions.Hosting.IHost> build);
new Microsoft.ServiceFabric.Services.Communication.AspNetCore.KestrelCommunicationListener : System.Fabric.ServiceContext * string * Func<string, Microsoft.ServiceFabric.Services.Communication.AspNetCore.AspNetCoreCommunicationListener, Microsoft.Extensions.Hosting.IHost> -> Microsoft.ServiceFabric.Services.Communication.AspNetCore.KestrelCommunicationListener
Public Sub New (serviceContext As ServiceContext, endpointName As String, build As Func(Of String, AspNetCoreCommunicationListener, IHost))

Parameters

serviceContext
ServiceContext

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

endpointName
String

Name of endpoint resource defined in service manifest that should be used to create the address for listener. Protocol and port specified in this endpoint is used to create the url. If the endpointName is null, a default address with http protocol and port 0 will be used. Kestrel will dynamically bind to an unspecified, available port when port 0 is specified in url. If the specified endpointName is not found in service manifest, an InvalidOperationException indicating this will be thrown.

build
Func<String,Microsoft.ServiceFabric.Services.Communication.AspNetCore.AspNetCoreCommunicationListener,IHost>

Delegate to build Microsoft.Extensions.Hosting.IHost, endpoint url generated by the listener is given as input to this delegate. This gives the flexibility to change the url before creating Microsoft.Extensions.Hosting.IHost if needed.

Applies to