public SetReply ( string reply_type, float reply_timeout, TimeoutEventHandler callback ) : void | ||
reply_type | string | |
reply_timeout | float | |
callback | TimeoutEventHandler | |
return | void |
public void SetReply(string reply_type, float reply_timeout, TimeoutEventHandler callback)
{
this.reply_type = reply_type;
this.reply_timeout = reply_timeout;
this.timeout_callback = callback;
}
private void AddExpectedReply(FunapiMessage fun_msg, string reply_type, float reply_time, TimeoutEventHandler onReplyMissed) { lock (expected_reply_lock) { if (!expected_replies_.ContainsKey(reply_type)) { expected_replies_[reply_type] = new List<FunapiMessage>(); } fun_msg.SetReply(reply_type, reply_time, onReplyMissed); expected_replies_[reply_type].Add(fun_msg); DebugUtils.Log("Adds expected reply message - {0} > {1}", fun_msg.msg_type, reply_type); } }