示例#1
0
        protected object GetEncryptedAuthToken(MasterApplication app)
        {
            var tc = app.TokenCreator;

            if (this.binaryTokenUsed)
            {
                return(tc.EncryptAuthenticationTokenBinary(this.unencryptedAuthToken, true));
            }
            return(this.authOnceUsed ? tc.EncryptAuthenticationTokenV2(this.unencryptedAuthToken, true)
                : tc.EncryptAuthenticationToken(this.unencryptedAuthToken, true));
        }
 public RedirectedClientPeer(IRpcProtocol protocol, IPhotonPeer unmanagedPeer, MasterApplication application)
     : base(protocol, unmanagedPeer)
 {
     this.application = application;
 }
示例#3
0
 public RedirectedClientPeer(IRpcProtocol protocol, IPhotonPeer unmanagedPeer, MasterApplication application)
     : base(protocol, unmanagedPeer)
 {
     this.application = application;
 }