示例#1
0
        List <StoreIntegrityCheckJob> IMailbox.QueryIsInteg(Guid isIntegRequestGuid)
        {
            List <StoreIntegrityCheckJob> list = new List <StoreIntegrityCheckJob>(1);

            using (ExRpcAdmin rpcAdmin = base.GetRpcAdmin())
            {
                using (base.RHTracker.Start())
                {
                    MrsTracer.Provider.Debug("Starting IsInteg task \"{0}\" in MDB {1}", new object[]
                    {
                        base.TraceMailboxId,
                        base.MdbGuid
                    });
                    PropValue[][] array = rpcAdmin.StoreIntegrityCheckEx(base.MdbGuid, base.MailboxGuid, isIntegRequestGuid, 2U, 0U, null, IsInteg.JobPropTags);
                    foreach (PropValue[] propValues in array)
                    {
                        StoreIntegrityCheckJob storeIntegrityCheckJob = new StoreIntegrityCheckJob(propValues);
                        list.Add(storeIntegrityCheckJob);
                        MrsTracer.Provider.Debug("Queried Store IsInteg task: {0}", new object[]
                        {
                            storeIntegrityCheckJob.ToString()
                        });
                    }
                }
            }
            return(list);
        }
示例#2
0
        Guid IMailbox.StartIsInteg(List <uint> mailboxCorruptionTypes)
        {
            ExAssert.RetailAssert(mailboxCorruptionTypes != null, "IMailbox.StartIsInteg input must be non-null");
            Guid result = Guid.Empty;

            using (ExRpcAdmin rpcAdmin = base.GetRpcAdmin())
            {
                using (base.RHTracker.Start())
                {
                    MrsTracer.Provider.Debug("Starting IsInteg task \"{0}\" in MDB {1}", new object[]
                    {
                        base.TraceMailboxId,
                        base.MdbGuid
                    });
                    PropValue[][] array = rpcAdmin.StoreIntegrityCheckEx(base.MdbGuid, base.MailboxGuid, Guid.Empty, 1U, 20U, mailboxCorruptionTypes.ToArray(), IsInteg.JobPropTags);
                    foreach (PropValue[] propValues in array)
                    {
                        StoreIntegrityCheckJob storeIntegrityCheckJob = new StoreIntegrityCheckJob(propValues);
                        result = storeIntegrityCheckJob.RequestGuid;
                        MrsTracer.Provider.Debug("Started Store IsInteg task: {0}", new object[]
                        {
                            storeIntegrityCheckJob.ToString()
                        });
                    }
                }
            }
            return(result);
        }