private URLEndpointListenerConfiguration CreateListenerConfig(bool tls = true, bool useDynamicPort = true, IListenerAuthenticator auth = null, TLSIdentity id = null, bool stopListener = true) { if (stopListener) { _listener?.Stop(); } var config = new URLEndpointListenerConfiguration(OtherDb); if (useDynamicPort) { config.Port = 0; } else { config.Port = tls ? WssPort : WsPort; } config.DisableTLS = !tls; config.Authenticator = auth; config.TlsIdentity = id; return(config); }
private URLEndpointListenerConfiguration CreateListenerConfig(bool tls = true, bool useDynamicPort = true, IListenerAuthenticator auth = null, TLSIdentity id = null, bool readOnly = false, string networkInterface = null) { _listener?.Stop(); var config = new URLEndpointListenerConfiguration(OtherDb) { Port = useDynamicPort ? (ushort)0 : tls ? WssPort : WsPort, DisableTLS = !tls, Authenticator = auth, TlsIdentity = id, ReadOnly = readOnly }; return(config); }
private URLEndpointListener CreateListener(bool tls = true, bool useDynamicPort = true, IListenerAuthenticator auth = null) { _listener?.Stop(); var config = new URLEndpointListenerConfiguration(OtherDb); //In order to get the test to pass on Linux, Port needs to be 0. if (useDynamicPort) { config.Port = 0; } else { config.Port = tls ? WssPort : WsPort; } config.DisableTLS = !tls; config.Authenticator = auth; return(Listen(config)); }
private URLEndpointListener CreateListener(bool tls = true, bool useDynamicPort = true, IListenerAuthenticator auth = null) { _listener?.Stop(); var config = new URLEndpointListenerConfiguration(OtherDb) { Port = useDynamicPort ? (ushort)0 : tls ? WssPort : WsPort,//In order to get the test to pass on Linux, Port needs to be 0. DisableTLS = !tls, Authenticator = auth }; return(Listen(config)); }