Exemplo n.º 1
0
 public bool Startup()
 {
     if (!RpcClient.Startup())
     {
         return(false);
     }
     _heartbeat.StartDispatcher();
     return(true);
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }