public void AnswerChallenge(ulong challengeID, string answer) { ChallengeAnsweredRequest message = new ChallengeAnsweredRequest(); message.SetAnswer("pass"); byte[] val = new byte[] { 2, 3, 4, 5, 6, 7, 0, 0 }; message.SetData(val); if (message.IsInitialized) { RPCContext context = base.m_rpcConnection.QueueRequest(this.ChallengeService.Id, 2, message, new RPCContextDelegate(this.ChallengeAnsweredCallback), 0); this.s_pendingAnswers.Add(context.Header.Token, challengeID); } }
public void AnswerChallenge(ulong challengeID, string answer) { ChallengeAnsweredRequest challengeAnsweredRequest = new ChallengeAnsweredRequest(); challengeAnsweredRequest.SetAnswer("pass"); byte[] data = new byte[] { 2, 3, 4, 5, 6, 7 }; challengeAnsweredRequest.SetData(data); if (!challengeAnsweredRequest.IsInitialized) { return; } RPCContext rpccontext = this.m_rpcConnection.QueueRequest(this.ChallengeService.Id, 2u, challengeAnsweredRequest, new RPCContextDelegate(this.ChallengeAnsweredCallback), 0u); this.s_pendingAnswers.Add(rpccontext.Header.Token, challengeID); }
public void AnswerChallenge(ulong challengeID, string answer) { ChallengeAnsweredRequest challengeAnsweredRequest = new ChallengeAnsweredRequest(); challengeAnsweredRequest.SetAnswer("pass"); challengeAnsweredRequest.SetData(new byte[] { typeof(< PrivateImplementationDetails >).GetField("$field-0702550BB56A81BC051BA8F9BCD15ACBBB08D7EF").FieldHandle });