public bool ConfirmPadInt(int uid) { Logger.Log(new String[] { "Server", ID.ToString(), "confirmPadInt ", "uid", uid.ToString(), serverState.StateMsg }); try { return(serverState.ConfirmPadInt(uid)); } catch (PadIntNotFoundException) { throw; } catch (ServerDoesNotReplyException) { throw; } }
internal override bool ConfirmPadInt(int uid) { Logger.Log(new String[] { "FreezedServer", Server.ID.ToString(), "confirmPadInt ", "uid", uid.ToString() }); bool result; lock (this) { while (!recover) { Monitor.Wait(this); } result = oldState.ConfirmPadInt(uid); Monitor.Pulse(this); } return(result); }