Ejemplo n.º 1
0
 /// <summary>
 /// Sets the mode of the bookie name provided
 /// </summary>
 /// <param name="bookieName">The name of the bookie to change the mode of</param>
 /// <param name="mode">The mode to set the bookie to</param>
 public void setMode(string bookieName, JSON_RPC_Server.ServiceMode mode)
 {
     foreach (Model.Bookie b in ListOfBookies.Where(t => t.ID.Equals(bookieName)))
         b.setMode(mode);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Set the bookie's mode of connection
 /// </summary>
 /// <param name="mode">The mode to set it to</param>
 public void setMode(JSON_RPC_Server.ServiceMode mode)
 {
     if (this.Connected)
     {
         Connection.setModeOfHost(mode, this._connectingGambler.getNextMessageID());
         this.Mode = mode;
     }
 }