/// <summary> /// Begin the validation process, fetch the salt from the epic server /// </summary> /// <param name="contextID">Context identifier</param> /// <returns>New validation context to use</returns> public override ValidationContext BeginValidation(string contextID) { MasterServerClient msc = new MasterServerClient(MasterServer.Settings.PassthroughValidatorHost, MasterServer.Settings.PassthroughValidatorPort); int salt = msc.Connect(); return(new ValidationContext(contextID, this, msc, salt)); }
/// <summary> /// </summary> /// <param name="args"></param> private static void Main(string[] args) { try { XmlConfigurator.Configure(); GameServer server = CreateServer(); MasterServerClient masterClient = CreateMasterServerClient(server); while (Console.KeyAvailable == false || Console.ReadKey().Key != ConsoleKey.Escape) { server.Update(); masterClient.Update(); Thread.Sleep(30); } } catch (Exception ex) { Logger.Error(ex.ToString()); } }