public bool Startup() { if (!RpcClient.Startup()) { return(false); } _heartbeat.StartDispatcher(); return(true); }
public async Task <bool> StartupAsync() { if (!Configuration.IgnoreHashVersion) { await CheckHasherVersion(); } if (!await RpcClient.StartupAsync().ConfigureAwait(false)) { return(false); } await _heartbeat.StartDispatcher().ConfigureAwait(false); return(true); }
public async Task <bool> StartupAsync() { if (!Configuration.IgnoreHashVersion && !await CheckHasherVersion()) { throw new HashVersionMismatchException($"The version of the {nameof(Configuration.Hasher)} ({Configuration.Hasher.PokemonVersion}) does not match the minimal API version of PokemonGo. Set 'Configuration.IgnoreHashVersion' to true if you want to disable the version check."); } if (!await RpcClient.StartupAsync().ConfigureAwait(false)) { return(false); } await _heartbeat.StartDispatcher().ConfigureAwait(false); return(true); }