Ejemplo n.º 1
0
        protected override IConfigDataProvider CreateSession()
        {
            DarTaskAggregateParams darParams = new DarTaskAggregateParams
            {
                TenantId = base.CurrentOrganizationId.GetBytes(Encoding.UTF8),
                TaskType = this.TaskType
            };

            return(new DarTaskAggregateDataProvider(darParams, this.ExecutionUnit.Fqdn));
        }
Ejemplo n.º 2
0
        protected override IConfigDataProvider CreateSession()
        {
            DarTaskAggregateParams darParams = new DarTaskAggregateParams
            {
                TenantId = base.CurrentOrganizationId.GetBytes(Encoding.UTF8),
                TaskId   = this.DataObject.Id
            };

            return(new DarTaskAggregateDataProvider(darParams, this.server.Fqdn));
        }
        protected override void InternalProcessRecord()
        {
            if (this.TenantId != null)
            {
                base.CurrentOrganizationId = GetDarTask.ResolveOrganizationId(this.TenantId);
            }
            string fqdn = GetDarTask.ResolveServerId(base.CurrentOrganizationId).Fqdn;
            DarTaskAggregateParams darTaskAggregateParams = new DarTaskAggregateParams
            {
                TenantId = base.CurrentOrganizationId.GetBytes(Encoding.UTF8),
                TaskType = this.TaskType
            };

            using (HostRpcClient hostRpcClient = new HostRpcClient(fqdn))
            {
                hostRpcClient.RemoveDarTaskAggregate(darTaskAggregateParams);
            }
        }
 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.º 5
0
 public void RemoveDarTaskAggregate(DarTaskAggregateParams darTaskAggregateParams)
 {
     this.SendDarHostRequest(0, 7, darTaskAggregateParams.ToBytes());
 }
Ejemplo n.º 6
0
        public TaskAggregateStoreObject[] GetDarTaskAggregate(DarTaskAggregateParams darTaskAggregateParams)
        {
            DarTaskResult darTaskResult = this.SendDarHostRequest(0, 4, darTaskAggregateParams.ToBytes());

            return(darTaskResult.DarTaskAggregates);
        }
 public DarTaskAggregateDataProvider(DarTaskAggregateParams darParams, string serverFqdn)
 {
     this.darParams  = darParams;
     this.serverFqdn = serverFqdn;
 }