C# Class Common.Shared.Websockets.WebSocketListener

Inheritance: ICommunicationListener
Afficher le fichier Open project: Azure-Samples/service-fabric-dotnet-data-streaming-websockets

Méthodes publiques

Méthode Description
Abort ( ) : void
CloseAsync ( CancellationToken cancellationToken ) : Task
OpenAsync ( CancellationToken cancellationToken ) : Task
WebSocketListener ( string serviceEndpoint, string appRoot, ServiceContext serviceContext, Func createConnectionHandler ) : System

Private Methods

Méthode Description
ProcessConnectionAsync ( CancellationToken cancellationToken, HttpListenerContext httpContext ) : Task
StopAll ( ) : void

Stops, cancels, and disposes everything.

Method Details

Abort() public méthode

public Abort ( ) : void
Résultat void

CloseAsync() public méthode

public CloseAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
Résultat Task

OpenAsync() public méthode

public OpenAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
Résultat Task

WebSocketListener() public méthode

public WebSocketListener ( string serviceEndpoint, string appRoot, ServiceContext serviceContext, Func createConnectionHandler ) : System
serviceEndpoint string
appRoot string
serviceContext ServiceContext
createConnectionHandler Func
Résultat System