Exemplo n.º 1
0
        /// <summary>
        /// Performs the query to the provider, passing the required arguments.
        /// </summary>
        /// <param name="provider">The API provider to use.</param>
        /// <param name="callback">The callback invoked on the UI thread after a result has
        /// been queried.</param>
        /// <exception cref="System.ArgumentNullException">provider</exception>
        protected virtual void QueryAsyncCore(APIProvider provider, APIProvider.
                                              ESIRequestCallback <T> callback)
        {
            provider.ThrowIfNull(nameof(provider));

            provider.QueryEsi(Method, callback, new ESIParams(LastResult?.Response));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Performs the query to the provider, passing the required arguments.
        /// </summary>
        /// <param name="provider">The API provider to use.</param>
        /// <param name="callback">The callback invoked on the UI thread after a result has
        /// been queried.</param>
        /// <exception cref="System.ArgumentNullException">provider</exception>
        protected override void QueryAsyncCore(APIProvider provider, APIProvider.
                                               ESIRequestCallback <T> callback)
        {
            provider.ThrowIfNull(nameof(provider));

            provider.QueryEsi(Method, callback, GetESIParams());
        }
Exemplo n.º 3
0
        /// <summary>
        /// Performs the query to the provider, passing the required arguments.
        /// </summary>
        /// <param name="provider">The API provider to use.</param>
        /// <param name="callback">The callback invoked on the UI thread after a result has
        /// been queried.</param>
        /// <exception cref="System.ArgumentNullException">provider</exception>
        protected override void QueryAsyncCore(APIProvider provider, APIProvider.
                                               ESIRequestCallback <T> callback)
        {
            provider.ThrowIfNull(nameof(provider));

            provider.QueryEsi(Method, callback, new ESIParams(m_lastResponse, m_esiKey.
                                                              AccessToken));
        }