コード例 #1
0
            private static void DeleteResponse(int reqId, IntPtr provider, bool providerResult, string error, IntPtr userData)
            {
                Consumer consumer = null;

                if (!UnregisterReqId(reqId, ref consumer))
                {
                    return;
                }

                if (!providerResult)
                {
                    Log.Error(LogTag, $"reqId {reqId.ToString()}, error : {error}");
                }

                consumer.OnDeleteResult(new DeleteResult(providerResult));
            }
コード例 #2
0
            private static void DeleteResponse(int reqId, IntPtr provider, bool providerResult, string error, IntPtr userData)
            {
                if (!_reqConsumerDictionary.ContainsKey(reqId))
                {
                    Log.Error(LogTag, $"Invalid reqId {reqId.ToString()}");
                    return;
                }

                if (!providerResult)
                {
                    Log.Error(LogTag, $"reqId {reqId.ToString()}, error : {error}");
                }

                Consumer consumer = _reqConsumerDictionary[reqId];

                consumer.OnDeleteResult(new DeleteResult(providerResult));
                _reqConsumerDictionary.Remove(reqId);
            }