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);
 }
Ejemplo n.º 2
0
 public void SetDarTaskAggregate(TaskAggregateStoreObject darTaskObject)
 {
     byte[] inputParameterBytes = DarTaskResult.ObjectToBytes <TaskAggregateStoreObject>(darTaskObject);
     this.SendDarHostRequest(0, 5, inputParameterBytes);
 }