Exemplo n.º 1
0
 public static ServerBuilder Listen <TTransport>(this ServerBuilder builder, EndPoint endPoint, Action <IConnectionBuilder> configure) where TTransport : IConnectionListenerFactory
 {
     return(builder.Listen(endPoint, ActivatorUtilities.CreateInstance <TTransport>(builder.ApplicationServices), configure));
 }
Exemplo n.º 2
0
 public static ServerBuilder ListenWebSocket(this ServerBuilder builder, Uri uri, Action <IConnectionBuilder> serverApplication)
 {
     return(builder.Listen <WebSocketConnectionListenerFactory>(new UriEndPoint(uri), serverApplication));
 }
Exemplo n.º 3
0
 public static ServerBuilder ListenAzureSignalR(this ServerBuilder builder, string connectionString, string hub, Action <IConnectionBuilder> serverApplication)
 {
     return(builder.Listen <AzureSignalRConnectionListenerFactory>(
                new AzureSignalREndPoint(connectionString, hub, AzureSignalREndpointType.Server),
                serverApplication));
 }