Beispiel #1
0
        /// <summary>
        /// Accepts the new Login Key provided by a <see cref="LoginKeyCallback"/>.
        /// </summary>
        /// <param name="callback">The callback containing the new Login Key.</param>
        public void AcceptNewLoginKey( LoginKeyCallback callback )
        {
            var acceptance = new ClientMsgProtobuf<CMsgClientNewLoginKeyAccepted>( EMsg.ClientNewLoginKeyAccepted );
            acceptance.Body.unique_id = callback.UniqueID;

            this.Client.Send( acceptance );
        }
Beispiel #2
0
        void HandleLoginKey(IPacketMsg packetMsg)
        {
            var loginKey = new ClientMsgProtobuf <CMsgClientNewLoginKey>(packetMsg);

            var callback = new LoginKeyCallback(loginKey.Body);

            this.Client.PostCallback(callback);
        }
Beispiel #3
0
        /// <summary>
        /// Accepts the new Login Key provided by a <see cref="LoginKeyCallback"/>.
        /// </summary>
        /// <param name="callback">The callback containing the new Login Key.</param>
        public void AcceptNewLoginKey(LoginKeyCallback callback)
        {
            var acceptance = new ClientMsgProtobuf <CMsgClientNewLoginKeyAccepted>(EMsg.ClientNewLoginKeyAccepted);

            acceptance.Body.unique_id = callback.UniqueID;

            this.Client.Send(acceptance);
        }
Beispiel #4
0
        /// <summary>
        /// Accepts the new Login Key provided by a <see cref="LoginKeyCallback"/>.
        /// </summary>
        /// <param name="callback">The callback containing the new Login Key.</param>
        public void AcceptNewLoginKey(LoginKeyCallback callback)
        {
            if (callback == null)
            {
                throw new ArgumentNullException(nameof(callback));
            }

            var acceptance = new ClientMsgProtobuf <CMsgClientNewLoginKeyAccepted>(EMsg.ClientNewLoginKeyAccepted);

            acceptance.Body.unique_id = callback.UniqueID;

            this.Client.Send(acceptance);
        }
Beispiel #5
0
        void HandleLoginKey(IPacketMsg packetMsg)
        {
            var loginKey = new ClientMsgProtobuf <CMsgClientNewLoginKey>(packetMsg);

            var resp = new ClientMsgProtobuf <CMsgClientNewLoginKeyAccepted>(EMsg.ClientNewLoginKeyAccepted);

            resp.Body.unique_id = loginKey.Body.unique_id;

            this.Client.Send(resp);

            var callback = new LoginKeyCallback(loginKey.Body);

            this.Client.PostCallback(callback);
        }
Beispiel #6
0
        void HandleLoginKey(IPacketMsg packetMsg)
        {
            var loginKey = new ClientMsgProtobuf <CMsgClientNewLoginKey>(packetMsg);

            var resp = new ClientMsgProtobuf <CMsgClientNewLoginKeyAccepted>(EMsg.ClientNewLoginKeyAccepted);

            resp.Body.unique_id = loginKey.Body.unique_id;

            this.Client.Send(resp);

#if STATIC_CALLBACKS
            var callback = new LoginKeyCallback(Client, loginKey.Body);
            SteamClient.PostCallback(callback);
#else
            var callback = new LoginKeyCallback(loginKey.Body);
            this.Client.PostCallback(callback);
#endif
        }
Beispiel #7
0
        void HandleLoginKey( IPacketMsg packetMsg )
        {
            var loginKey = new ClientMsgProtobuf<CMsgClientNewLoginKey>( packetMsg );

            var callback = new LoginKeyCallback( loginKey.Body );
            this.Client.PostCallback( callback );
        }
Beispiel #8
0
        void HandleLoginKey( IPacketMsg packetMsg )
        {
            var loginKey = new ClientMsgProtobuf<CMsgClientNewLoginKey>( packetMsg );

            var resp = new ClientMsgProtobuf<CMsgClientNewLoginKeyAccepted>( EMsg.ClientNewLoginKeyAccepted );
            resp.Body.unique_id = loginKey.Body.unique_id;

            this.Client.Send( resp );

#if STATIC_CALLBACKS
            var callback = new LoginKeyCallback( Client, loginKey.Body );
            SteamClient.PostCallback( callback );
#else
            var callback = new LoginKeyCallback( loginKey.Body );
            this.Client.PostCallback( callback );
#endif
        }
Beispiel #9
0
        void HandleLoginKey( IPacketMsg packetMsg )
        {
            var loginKey = new ClientMsgProtobuf<CMsgClientNewLoginKey>( packetMsg );

            var resp = new ClientMsgProtobuf<CMsgClientNewLoginKeyAccepted>( EMsg.ClientNewLoginKeyAccepted );
            resp.Body.unique_id = loginKey.Body.unique_id;

            this.Client.Send( resp );

            var callback = new LoginKeyCallback( loginKey.Body );
            this.Client.PostCallback( callback );
        }