public static void SetRpcUser(RpcUser rpcUser) { if (RpcUser != null) { RpcUser.Logout(); } RpcUser = rpcUser; }
public static void SetRpcUser(RpcUser rpcUser, bool isOuterNet) { if (RpcUser != null) { RpcUser.Logout(); } RpcUser = rpcUser; IsOuterNet = isOuterNet; }
public static void Login(RpcUser rpcUser) { if (RpcUser != null) { RpcUser.Logout(); } RpcUser = rpcUser; LoginedOn = DateTime.Now; }
public void Test() { string password = Guid.NewGuid().ToString(); RpcUser rpcUser = new RpcUser("test", password); Assert.AreEqual(password, rpcUser.Password); for (int i = 0; i < 10000; i++) { _ = rpcUser.Password; } rpcUser.Logout(); }