Skip to content

Commit

Permalink
Fixing #262
Browse files Browse the repository at this point in the history
  • Loading branch information
darkl committed Aug 9, 2018
1 parent 89b429e commit 095b85e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

namespace WampSharp.V2.Authentication
{
internal abstract class WampAuthenticationBinding<TMessage> : IWampRouterBinding<TMessage>
internal class WampAuthenticationBinding<TMessage> : IWampRouterBinding<TMessage>
{
private readonly IWampBinding<TMessage> mBinding;
private readonly IWampSessionAuthenticatorFactory mSessionAuthenticationFactory;
private readonly IWampUriValidator mUriValidator;

protected WampAuthenticationBinding(IWampBinding<TMessage> binding,
public WampAuthenticationBinding(IWampBinding<TMessage> binding,
IWampSessionAuthenticatorFactory sessionAuthenticationFactory,
IWampUriValidator uriValidator)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ private IWampBinding CreateAuthenticationBinding<TMessage>
return new WampAuthenticationBinaryBinding<TMessage>(binding, mSessionAuthenticationFactory, this.UriValidator);
}

private IWampBinding CreateAuthenticationBinding<TMessage>
(IWampBinding<TMessage> binding)
{
return new WampAuthenticationBinding<TMessage>(binding, mSessionAuthenticationFactory, this.UriValidator);
}

/// <summary>
/// Fallback in case that binding doesn't implement
/// IWampBinding{TMessage}
Expand Down

0 comments on commit 095b85e

Please sign in to comment.