Skip to content

Commit 5eb8027

Browse files
author
Elad Zelingher
committed
Fixing pcl build
1 parent 6719fc1 commit 5eb8027

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/net45/WampSharp/WAMP2/V2/MetaApi/Client/MetaApiEventsBase.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,14 @@ protected MetaApiEventsBase(IWampRealmProxy realmProxy)
2121

2222
protected Task<IAsyncDisposable> InnerSubscribe(Delegate handler, string topic)
2323
{
24+
#if !PCL
25+
MethodInfo method = handler.Method;
26+
#else
27+
MethodInfo method = handler.GetMethodInfo();
28+
#endif
2429
return
2530
mRealmProxy.TopicContainer.GetTopicByUri(topic)
26-
.Subscribe(new MethodInfoSubscriber(handler.Target, handler.Method, topic),
31+
.Subscribe(new MethodInfoSubscriber(handler.Target, method, topic),
2732
new SubscribeOptions());
2833
}
2934

0 commit comments

Comments
 (0)