Exemplo n.º 1
0
 public WampCraChallenge(string authId, string authKey, DateTime timestamp, string sessionId, IDictionary<string, string> extra, WampCraPermissions permissions = null, IDictionary<string, string> authextra = null)
 {
     this.authid = authId;
     this.authkey = authKey;
     this.timestamp = timestamp;
     this.sessionid = sessionId;
     this.extra = extra;
     this.permissions = permissions ?? new WampCraPermissions();
     this.authextra = authextra;
 }
        public void AddPermissions(WampCraPermissions permissions)
        {
            foreach (WampRpcPermissions rpc in permissions.rpc)
            {
                AddRpcPermission(rpc);
            }

            foreach (WampPubSubPermissions pubsub in permissions.pubsub)
            {
                AddPubSubPermission(pubsub);
            }
        }