コード例 #1
0
        public void Unsubscribe(IWampClient client, string topicUri)
        {
            string resolvedTopicUri = ResolveUri(client, topicUri);
            WampCraAuthenticator <TMessage> wampAuth = GetOrCreateWampAuthenticatorForClient(client);

            if (wampAuth.IsAuthenticated)
            {
                WampPubSubPermissions pubSubPerm = wampAuth.CraPermissionsMapper.LookupPubSubPermissions(resolvedTopicUri);

                if (pubSubPerm != null && pubSubPerm.sub)
                {
                    mPubSubServer.Unsubscribe(client, resolvedTopicUri);
                }
            }
        }
コード例 #2
0
 public void Unsubscribe(IWampClient client, string topicUri)
 {
     mPubSubServer.Unsubscribe(client, topicUri);
 }