/// <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 ); }
void HandleLoginKey(IPacketMsg packetMsg) { var loginKey = new ClientMsgProtobuf <CMsgClientNewLoginKey>(packetMsg); var callback = new LoginKeyCallback(loginKey.Body); this.Client.PostCallback(callback); }
/// <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); }
/// <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); }
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); }
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 }
void HandleLoginKey( IPacketMsg packetMsg ) { var loginKey = new ClientMsgProtobuf<CMsgClientNewLoginKey>( packetMsg ); var callback = new LoginKeyCallback( loginKey.Body ); this.Client.PostCallback( callback ); }
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 }
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 ); }