From 095b85e072831a4f758e36bc47e5638420cc5fe3 Mon Sep 17 00:00:00 2001 From: Elad Zelingher Date: Thu, 9 Aug 2018 14:41:13 -0400 Subject: [PATCH] Fixing #262 --- .../V2/Authentication/Host/WampAuthenticationBinding.cs | 4 ++-- .../WAMP2/V2/Authentication/Host/WampAuthenticationHost.cs | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/net45/WampSharp/WAMP2/V2/Authentication/Host/WampAuthenticationBinding.cs b/src/net45/WampSharp/WAMP2/V2/Authentication/Host/WampAuthenticationBinding.cs index b3f370b3d..65b3b77e3 100644 --- a/src/net45/WampSharp/WAMP2/V2/Authentication/Host/WampAuthenticationBinding.cs +++ b/src/net45/WampSharp/WAMP2/V2/Authentication/Host/WampAuthenticationBinding.cs @@ -7,13 +7,13 @@ namespace WampSharp.V2.Authentication { - internal abstract class WampAuthenticationBinding : IWampRouterBinding + internal class WampAuthenticationBinding : IWampRouterBinding { private readonly IWampBinding mBinding; private readonly IWampSessionAuthenticatorFactory mSessionAuthenticationFactory; private readonly IWampUriValidator mUriValidator; - protected WampAuthenticationBinding(IWampBinding binding, + public WampAuthenticationBinding(IWampBinding binding, IWampSessionAuthenticatorFactory sessionAuthenticationFactory, IWampUriValidator uriValidator) { diff --git a/src/net45/WampSharp/WAMP2/V2/Authentication/Host/WampAuthenticationHost.cs b/src/net45/WampSharp/WAMP2/V2/Authentication/Host/WampAuthenticationHost.cs index 43566398a..a7bc6c660 100644 --- a/src/net45/WampSharp/WAMP2/V2/Authentication/Host/WampAuthenticationHost.cs +++ b/src/net45/WampSharp/WAMP2/V2/Authentication/Host/WampAuthenticationHost.cs @@ -61,6 +61,12 @@ private IWampBinding CreateAuthenticationBinding return new WampAuthenticationBinaryBinding(binding, mSessionAuthenticationFactory, this.UriValidator); } + private IWampBinding CreateAuthenticationBinding + (IWampBinding binding) + { + return new WampAuthenticationBinding(binding, mSessionAuthenticationFactory, this.UriValidator); + } + /// /// Fallback in case that binding doesn't implement /// IWampBinding{TMessage}