Ejemplo n.º 1
0
        IFxProxyPool IDestinationMailbox.GetFxProxyPool(ICollection <byte[]> folderIds)
        {
            MrsTracer.Provider.Function("StorageDestinationMailbox.GetFxProxyPool", new object[0]);
            base.VerifyMailboxConnection(VerifyMailboxConnectionFlags.None);
            IFxProxyPool result;

            using (base.RHTracker.Start())
            {
                StorageFxProxyPool proxy       = new StorageFxProxyPool(this, folderIds);
                IFxProxyPool       proxy2      = new FxProxyPoolBudgetWrapper(proxy, true, new Func <IDisposable>(base.RHTracker.Start), new Action <uint>(base.RHTracker.Charge));
                IFxProxyPool       fxProxyPool = new FxProxyPoolWrapper(proxy2, null);
                result = fxProxyPool;
            }
            return(result);
        }
Ejemplo n.º 2
0
        private void SetProps(IPropertyBag propertyBag, PropValueData[] pvda)
        {
            if (pvda == null)
            {
                return;
            }
            int i = 0;

            while (i < pvda.Length)
            {
                PropValueData propValueData = pvda[i];
                object        obj           = propValueData.Value;
                if (obj is DateTime)
                {
                    obj = new ExDateTime(ExTimeZone.TimeZoneFromKind(((DateTime)obj).Kind), (DateTime)obj);
                }
                PropTag propTag  = (PropTag)propValueData.PropTag;
                PropTag propTag2 = propTag;
                if (propTag2 == PropTag.MessageFlags)
                {
                    MessageFlags messageFlags = StorageFxProxyPool.UpdateMessageFlags(propertyBag, (MessageFlags)((int)obj));
                    obj = (int)messageFlags;
                    goto IL_8B;
                }
                if (propTag2 != (PropTag)276824067U)
                {
                    goto IL_8B;
                }
                if (StorageFxProxyPool.ShouldUpdateIconIndex(propertyBag, (IconIndex)obj))
                {
                    goto Block_5;
                }
IL_B5:
                i++;
                continue;
Block_5:
                try
                {
IL_8B:
                    propertyBag.SetProperty(new PropertyValue(new PropertyTag((uint)propValueData.PropTag), obj));
                }
                catch (ArgumentException ex)
                {
                    throw new ExArgumentException(ex.Message, ex);
                }
                goto IL_B5;
            }
        }