private DxStoreAccessReply.GetAllProperties GetAllPropertiesInternal(DxStoreAccessRequest.GetAllProperties request) { bool isStale = !this.EnsureInstanceReadyAndNotStale(request.ReadOptions); DxStoreAccessReply.GetAllProperties getAllProperties = this.CreateReply <DxStoreAccessReply.GetAllProperties>(); getAllProperties.ReadResult = new ReadResult { IsStale = isStale }; getAllProperties.Values = this.instance.LocalDataStore.GetAllProperties(request.FullKeyName); return(this.FinishRequest <DxStoreAccessReply.GetAllProperties>(getAllProperties)); }
// Token: 0x060005C5 RID: 1477 RVA: 0x0001607C File Offset: 0x0001427C public IEnumerable <Tuple <string, object> > GetAllValues(ReadWriteConstraints constraints) { List <Tuple <string, object> > list = new List <Tuple <string, object> >(); ReadOptions readOptions = this.GetReadOptions(constraints); return(this.BaseParameters.KeyFactory.RunOperationAndTranslateException <List <Tuple <string, object> > >(OperationCategory.GetAllValues, this.FullKeyName, delegate() { DxStoreAccessRequest.GetAllProperties getAllProperties = this.CreateRequest <DxStoreAccessRequest.GetAllProperties>(); getAllProperties.ReadOptions = readOptions; DxStoreAccessReply.GetAllProperties allProperties = this.BaseParameters.Client.GetAllProperties(getAllProperties, null); this.SetReadResult(constraints, allProperties.ReadResult); foreach (Tuple <string, PropertyValue> tuple in allProperties.Values) { string item = tuple.Item1; object item2 = (tuple.Item2 != null) ? tuple.Item2.Value : null; list.Add(new Tuple <string, object>(item, item2)); } return list; }, false)); }
public DxStoreAccessReply.GetAllProperties GetAllProperties(DxStoreAccessRequest.GetAllProperties request) { return(this.RunServerOperationAndConvertToFaultException <DxStoreAccessRequest.GetAllProperties, DxStoreAccessReply.GetAllProperties>(request, (DxStoreAccessRequest.GetAllProperties req) => this.GetAllPropertiesInternal(req))); }