Exemple #1
0
        public void SetConcurrencyValues(object resourceCookie, bool?checkForEquality, IEnumerable <KeyValuePair <string, object> > concurrencyValues)
        {
            string str;
            string str1;
            bool   hasValue;
            Tracer current = TraceHelper.Current;
            string str2    = "DataServiceUpdateProvider";
            string str3    = "SetConcurrencyValues";

            if (!checkForEquality.HasValue)
            {
                str = "null";
            }
            else
            {
                str = checkForEquality.ToString();
            }
            if (concurrencyValues == null)
            {
                str1 = "null";
            }
            else
            {
                str1 = concurrencyValues.ToString();
            }
            current.MethodCall2(str2, str3, str, str1);
            if (checkForEquality.HasValue)
            {
                bool?nullable = checkForEquality;
                if (nullable.GetValueOrDefault())
                {
                    hasValue = false;
                }
                else
                {
                    hasValue = nullable.HasValue;
                }
                if (!hasValue)
                {
                    IUpdateInstance instanceFromHandle = this.GetInstanceFromHandle(resourceCookie);
                    instanceFromHandle.VerifyConcurrencyValues(concurrencyValues);
                    return;
                }
                else
                {
                    throw new NotImplementedException();
                }
            }
            else
            {
                return;
            }
        }