public IEnumerable <T> FindPaged <T>(QueryFilter filter, ObjectId rootId, bool deepSearch, SortBy sortBy, int pageSize) where T : IConfigurable, new()
 {
     using (HostRpcClient client = new HostRpcClient(this.serverFqdn))
     {
         foreach (TaskAggregateStoreObject task in client.GetDarTaskAggregate(this.darParams))
         {
             yield return((T)((object)task));
         }
     }
     yield break;
 }
 public IConfigurable Read <T>(ObjectId identity) where T : IConfigurable, new()
 {
     if (identity == null)
     {
         throw new ArgumentNullException("identity");
     }
     using (HostRpcClient hostRpcClient = new HostRpcClient(this.serverFqdn))
     {
         DarTaskAggregateParams darTaskAggregateParams = new DarTaskAggregateParams
         {
             TaskId   = this.darParams.TaskId,
             TenantId = this.darParams.TenantId
         };
         TaskAggregateStoreObject[] darTaskAggregate = hostRpcClient.GetDarTaskAggregate(darTaskAggregateParams);
         int num = 0;
         if (num < darTaskAggregate.Length)
         {
             TaskAggregateStoreObject taskAggregateStoreObject = darTaskAggregate[num];
             return((T)((object)taskAggregateStoreObject));
         }
     }
     return(null);
 }