Example #1
0
        public static ManagementAgent GetManagementAgent(Guid id)
        {
            MMSWebService ws   = new MMSWebService();
            XmlNode       node = ManagementAgent.GetMaData(ws, id);

            return(new ManagementAgent(node, id));
        }
Example #2
0
        internal static XmlNode GetMaData(MMSWebService ws, Guid id, MAData madata, MAPartitionData partitionData, MARunData rundata)
        {
            string result = ws.GetMaData(id.ToMmsGuid(), (uint)madata, (uint)partitionData, (uint)rundata);

            SyncServer.ThrowExceptionOnReturnError(result);

            XmlDocument d = new XmlDocument();

            d.LoadXml(result);
            return(d.SelectSingleNode("/ma-data"));
        }
Example #3
0
        internal CSObjectEnumerator(MMSWebService ws, string token, bool exporting, int pageSize, CSObjectParts csParts, uint entryParts)
        {
            this.token      = token;
            this.webService = ws;
            this.exporting  = exporting;
            this.csParts    = csParts;
            this.entryParts = entryParts;
            this.pageSize   = (uint)pageSize;

            if (token == null)
            {
                this.currentResultSet = new CSObjectSearchResultBatch(new XmlDocument());
            }
            else
            {
                this.GetNextPage();
            }
        }
Example #4
0
        public static Dictionary <Guid, string> GetManagementAgentNameAndIDPairs()
        {
            Dictionary <Guid, string> mapping = new Dictionary <Guid, string>();

            MMSWebService ws = new MMSWebService();

            ws.GetMAGuidList(out ArrayList ids, out ArrayList names);

            if (names.Count != ids.Count)
            {
                throw new ArgumentOutOfRangeException(nameof(ids), "The sync engine returned a mis-matched number of management agents in the name-to-id mapping data");
            }

            for (int i = 0; i < ids.Count; i++)
            {
                mapping.Add(new Guid((string)ids[i]), (string)(names[i]));
            }

            return(mapping);
        }
Example #5
0
 internal static XmlNode GetMaData(MMSWebService ws, Guid id)
 {
     return(ManagementAgent.GetMaData(ws, id, MAData.MA_ALLBITS, MAPartitionData.BFPARTITION_ALL, MARunData.BFRUNDATA_ALLBITS));
 }
Example #6
0
 public static string GetMVData(this MMSWebService m, MVData mvdata)
 {
     return(m.GetMVData((uint)mvdata));
 }
Example #7
0
 public static string GetMaData(this MMSWebService m, Guid maGuid, MAData madata, MAPartitionData partitionData, MARunData rundata)
 {
     return(m.GetMaData(maGuid.ToMmsGuid(), (uint)madata, (uint)partitionData, (uint)rundata));
 }