Skip to content

Commit 86fd85d

Browse files
committed
Fixing #244
1 parent 59e274d commit 86fd85d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/net45/WampSharp/Core/Client/WampServerProxyBuilder.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
using WampSharp.Core.Message;
66
using WampSharp.Core.Proxy;
77
using WampSharp.Core.Utilities;
8+
using WampSharp.V2.CalleeProxy;
9+
using WampSharp.V2.Core.Proxy;
810

911
namespace WampSharp.Core.Client
1012
{
@@ -45,10 +47,14 @@ public TServer Create(TRawClient client, IWampConnection<TMessage> connection)
4547
new WampOutgoingInterceptor<TMessage>(mOutgoingSerializer,
4648
handler);
4749

48-
var proxyOptions = new ProxyGenerationOptions();
50+
ProxyGenerationOptions proxyOptions =
51+
new ProxyGenerationOptions()
52+
{
53+
Selector = new WampInterceptorSelector<TMessage>()
54+
};
4955

5056
proxyOptions.AddMixinInstance(new DisposableForwarder(connection));
51-
57+
5258
TServer result =
5359
mProxyGenerator.CreateInterfaceProxyWithoutTarget<TServer>
5460
(proxyOptions,

0 commit comments

Comments
 (0)