Esempio n. 1
0
        public IClientSession CreateSession(long expiryInSeconds)
        {
            Channel       ch  = _conn.GetChannel();
            ClientSession ssn = new ClientSession(Encoding.UTF8.GetBytes(UUID.RandomUuid().ToString()));

            ssn.Attach(ch);
            ssn.SessionAttach(ssn.GetName());
            ssn.SessionRequestTimeout(expiryInSeconds);
            return(ssn);
        }
Esempio n. 2
0
 public IClientSession CreateSession(long expiryInSeconds)
 {
     Channel ch = _conn.GetChannel();
     ClientSession ssn = new ClientSession(Encoding.UTF8.GetBytes(UUID.RandomUuid().ToString()));
     ssn.Attach(ch);
     ssn.SessionAttach(ssn.GetName());
     ssn.SessionRequestTimeout(expiryInSeconds);
     return ssn;
 }