void RecycleFeedbackRequestObject(FeedbackRequest request) { var type = request.GetType(); Queue <FeedbackRequest> pool; if (!m_FeedbackRequestPool.TryGetValue(type, out pool)) { pool = new Queue <FeedbackRequest>(); m_FeedbackRequestPool[type] = pool; } pool.Enqueue(request); }
/// <summary> /// Remove a feedback request from the system /// </summary> /// <param name="obj">The caller object</param> /// <param name="request">The feedback request</param> public static void RemoveFeedbackRequest(this IRequestFeedback obj, FeedbackRequest request) { request.caller = obj; removeFeedbackRequest(request); }
/// <summary> /// Add a feedback request to the system /// </summary> /// <param name="obj">The caller object</param> /// <param name="request">The feedback request</param> public static void AddFeedbackRequest(this IRequestFeedback obj, FeedbackRequest request) { request.caller = obj; addFeedbackRequest(request); }