コード例 #1
0
            private static void InsertResponse(int reqId, IntPtr provider, long insertedRowId, bool providerResult, string error, IntPtr userData)
            {
                Log.Debug(LogTag, $"InsertResponse {reqId.ToString()}");
                Consumer consumer = null;

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

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

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

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

                Consumer consumer = _reqConsumerDictionary[reqId];

                consumer.OnInsertResult(new InsertResult(insertedRowId, providerResult));
                _reqConsumerDictionary.Remove(reqId);
            }