CQRSMicroservices.ServiceFabric.WebService.OwinCommunicationListener.CloseAsync C# (CSharp) Method

CloseAsync() public method

Closes the communication listener.
public CloseAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken The cancellation token.
return Task
    public Task CloseAsync(CancellationToken cancellationToken)
    {
      StopWebServer();
      ServiceEventSource.Current.Message("Communication Listener closed.");
      return Task.FromResult(1);
    }