// Token: 0x0600067B RID: 1659 RVA: 0x00026B94 File Offset: 0x00024D94
 public void Update(string entityUri, MaintenancePlan plan)
 {
     using (IInformationServiceProxy2 informationServiceProxy = this.SwisFactory.Create())
     {
         Dictionary <string, object> dictionary = MaintenanceModePlanDAL.RemoveKeysFromDictionary(plan.ToDictionary <MaintenancePlan>(), new string[]
         {
             "ID"
         });
         informationServiceProxy.Update(entityUri, dictionary);
     }
 }
Exemplo n.º 2
0
        // Token: 0x06000921 RID: 2337 RVA: 0x00041ECC File Offset: 0x000400CC
        private void UpdateAgentNodeId(int agentId, int nodeId, IInformationServiceProxy2 proxy)
        {
            AgentInfo agentInfo = this._agentInfoDal.GetAgentInfo(agentId);

            if (agentInfo != null)
            {
                proxy.Update(agentInfo.Uri, new Dictionary <string, object>
                {
                    {
                        "NodeId",
                        nodeId
                    }
                });
                return;
            }
            AgentManager.log.WarnFormat("Agent Id={0} not found.", agentId);
        }
Exemplo n.º 3
0
 // Token: 0x06000923 RID: 2339 RVA: 0x00041F7C File Offset: 0x0004017C
 public void ResetAgentNodeId(int nodeId)
 {
     using (SwisConnectionProxyFactory swisConnectionProxyFactory = new SwisConnectionProxyFactory())
     {
         using (IInformationServiceProxy2 informationServiceProxy = swisConnectionProxyFactory.Create())
         {
             AgentInfo agentInfoByNode = this._agentInfoDal.GetAgentInfoByNode(nodeId);
             if (agentInfoByNode != null)
             {
                 informationServiceProxy.Update(agentInfoByNode.Uri, new Dictionary <string, object>
                 {
                     {
                         "NodeId",
                         nodeId
                     }
                 });
             }
             else
             {
                 AgentManager.log.WarnFormat("Agent for NodeId={0} not found", nodeId);
             }
         }
     }
 }