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; }