// Token: 0x060005AB RID: 1451 RVA: 0x000154BC File Offset: 0x000136BC
 private bool DeleteValueInternal(string propertyName, bool isIgnoreIfNotExist, ReadWriteConstraints constraints)
 {
     return(DistributedStore.Instance.ExecuteRequest <bool>(this, OperationCategory.DeleteValue, OperationType.Write, string.Format("Property: [{0}] IsBestEffort: [{1}] IsConstrained: [{2}]", propertyName, isIgnoreIfNotExist, constraints != null), delegate(IDistributedStoreKey key)
     {
         this.ThrowIfKeyIsInvalid(key);
         return key.DeleteValue(propertyName, isIgnoreIfNotExist, ReadWriteConstraints.Copy(constraints));
     }));
 }
 // Token: 0x060005AA RID: 1450 RVA: 0x00015444 File Offset: 0x00013644
 public IEnumerable <Tuple <string, object> > GetAllValuesInternal(ReadWriteConstraints constraints)
 {
     return(DistributedStore.Instance.ExecuteRequest <IEnumerable <Tuple <string, object> > >(this, OperationCategory.GetAllValues, OperationType.Read, string.Empty, delegate(IDistributedStoreKey key)
     {
         this.ThrowIfKeyIsInvalid(key);
         return key.GetAllValues(ReadWriteConstraints.Copy(constraints));
     }));
 }
        // Token: 0x060005A9 RID: 1449 RVA: 0x000153B4 File Offset: 0x000135B4
        private object GetValueInternal(string propertyName, out bool isValueExist, out RegistryValueKind valueKind, ReadWriteConstraints constraints)
        {
            Tuple <bool, RegistryValueKind, object> tuple = DistributedStore.Instance.ExecuteRequest <Tuple <bool, RegistryValueKind, object> >(this, OperationCategory.GetValue, OperationType.Read, string.Format("Property: [{0}]", propertyName), delegate(IDistributedStoreKey key)
            {
                this.ThrowIfKeyIsInvalid(key);
                bool item = false;
                RegistryValueKind item2 = RegistryValueKind.Unknown;
                object value            = key.GetValue(propertyName, out item, out item2, ReadWriteConstraints.Copy(constraints));
                return(new Tuple <bool, RegistryValueKind, object>(item, item2, value));
            });

            isValueExist = tuple.Item1;
            valueKind    = tuple.Item2;
            return(tuple.Item3);
        }
        // Token: 0x060005A5 RID: 1445 RVA: 0x0001507C File Offset: 0x0001327C
        private IDistributedStoreKey OpenKeyFinal(string subKeyName, DxStoreKeyAccessMode mode, bool isIgnoreIfNotExist, ReadWriteConstraints constraints)
        {
            OperationCategory operationCategory = OperationCategory.OpenKey;
            OperationType     operationType     = OperationType.Read;

            if (mode == DxStoreKeyAccessMode.CreateIfNotExist)
            {
                operationCategory = OperationCategory.OpenOrCreateKey;
                operationType     = OperationType.Write;
            }
            DistributedStoreKey  compositeKey = new DistributedStoreKey(this.FullKeyName, subKeyName, mode, this.Context);
            IDistributedStoreKey result;

            try
            {
                result = (DistributedStore.Instance.ExecuteRequest <bool>(this, operationCategory, operationType, string.Format("SubKey: [{0}] Mode: [{1}] IsBestEffort: [{2}] IsConstrained: [{3}]", new object[]
                {
                    subKeyName,
                    mode,
                    isIgnoreIfNotExist,
                    constraints != null
                }), delegate(IDistributedStoreKey key, bool isPrimary, StoreKind storeKind)
                {
                    this.ThrowIfKeyIsInvalid(key);
                    IDistributedStoreKey distributedStoreKey = key.OpenKey(subKeyName, mode, isIgnoreIfNotExist, ReadWriteConstraints.Copy(constraints));
                    if (distributedStoreKey != null)
                    {
                        DistributedStore.Instance.SetKeyByRole(compositeKey, isPrimary, distributedStoreKey);
                        return(true);
                    }
                    return(false);
                }) ? compositeKey : null);
            }
            finally
            {
                if (compositeKey.PrimaryStoreKey == null)
                {
                    compositeKey.CloseKey();
                }
            }
            return(result);
        }