WebListenerCommunicationListener Constructor
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.
Initializes a new instance of the WebListenerCommunicationListener class.
public WebListenerCommunicationListener (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.WebListenerCommunicationListener : System.Fabric.ServiceContext * string * Func<string, Microsoft.ServiceFabric.Services.Communication.AspNetCore.AspNetCoreCommunicationListener, Microsoft.AspNetCore.Hosting.IWebHost> -> Microsoft.ServiceFabric.Services.Communication.AspNetCore.WebListenerCommunicationListener
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.
- 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
Azure SDK for .NET