Example #1
0
        /// <summary>
        /// Runs a single queued callback.
        /// If no callback is queued, this method will instantly return.
        /// </summary>
        public void RunCallbacks()
        {
            var call = client.GetCallback(true);

            if (call == null)
            {
                return;
            }

            Handle(call);
        }
Example #2
0
        /// <summary>
        /// Runs a single queued callback.
        /// If no callback is queued, this method will instantly return.
        /// </summary>
        public void RunCallbacks()
        {
#if STATIC_CALLBACKS
            var call = SteamClient.GetCallback(true);
#else
            var call = client.GetCallback(true);
#endif

            if (call == null)
            {
                return;
            }

            Handle(call);
        }
Example #3
0
        /// <summary>
        /// Runs a single queued callback.
        /// If no callback is queued, this method will instantly return.
        /// </summary>
        public void RunCallbacks()
        {
#if STATIC_CALLBACKS
#pragma warning disable 0618 // we're knowingly using an obsolete api
            var call = SteamClient.GetCallback(true);
#pragma warning restore 0618
#else
            var call = client.GetCallback(true);
#endif

            if (call == null)
            {
                return;
            }

            Handle(call);
        }