示例#1
0
        // Token: 0x060000C7 RID: 199 RVA: 0x00004E68 File Offset: 0x00003068
        protected override void InternalTaskExecute()
        {
            base.InternalTaskExecute();
            Restriction mapiRestriction = null;

            if (this.restriction != null)
            {
                mapiRestriction = ConvertHelper.ConvertToMapiRestriction(this.restriction);
                if (mapiRestriction == null)
                {
                    throw new NspiException(NspiStatus.TooComplex, "Restriction too complex");
                }
            }
            int[]      midList    = null;
            PropRowSet mapiRowset = null;

            PropTag[] mapiPropTags = ConvertHelper.ConvertToMapiPropTags(this.propertyTags);
            base.NspiContextCallWrapper("GetMatches", () => this.Context.GetMatches(this.NspiState, mapiRestriction, this.maxRows, mapiPropTags, out midList, out mapiRowset));
            if (base.Status == NspiStatus.Success)
            {
                this.returnState  = base.NspiState;
                this.returnMids   = midList;
                this.returnRowset = ConvertHelper.ConvertFromMapiPropRowSet(mapiRowset, MarshalHelper.GetString8CodePage(base.NspiState));
                base.TraceNspiState();
                NspiDispatchTask.NspiTracer.TraceDebug <int>((long)base.ContextHandle, "Rows returned: {0}", (mapiRowset == null) ? 0 : mapiRowset.Rows.Count);
            }
        }
        protected override void InternalTaskExecute()
        {
            base.InternalTaskExecute();
            PropRowSet mapiRowset   = null;
            uint       localVersion = (uint)this.version;

            base.NspiContextCallWrapper("GetHierarchyInfo", () => this.Context.GetHierarchyInfo(this.flags, this.NspiState, ref localVersion, out mapiRowset));
            this.returnVersion = (int)localVersion;
            if (base.Status == NspiStatus.Success)
            {
                this.returnCodePage = base.NspiState.CodePage;
                this.returnRowset   = ConvertHelper.ConvertFromMapiPropRowSet(mapiRowset, this.returnCodePage);
                NspiDispatchTask.NspiTracer.TraceDebug <int>((long)base.ContextHandle, "Rows returned: {0}", (mapiRowset == null) ? 0 : mapiRowset.Rows.Count);
            }
        }
示例#3
0
        protected override void InternalTaskExecute()
        {
            base.InternalTaskExecute();
            PropTag[]  mapiPropTags = ConvertHelper.ConvertToMapiPropTags(this.propertyTags);
            PropRowSet mapiRowset   = null;

            base.NspiContextCallWrapper("QueryRows", () => this.Context.QueryRows(this.flags, this.NspiState, this.mids, this.rowCount, mapiPropTags, out mapiRowset));
            if (base.Status == NspiStatus.Success)
            {
                this.returnState  = base.NspiState;
                this.returnRowset = ConvertHelper.ConvertFromMapiPropRowSet(mapiRowset, MarshalHelper.GetString8CodePage(base.NspiState));
                base.TraceNspiState();
                NspiDispatchTask.NspiTracer.TraceDebug <int>((long)base.ContextHandle, "Rows returned: {0}", (mapiRowset == null) ? 0 : mapiRowset.Rows.Count);
            }
        }
示例#4
0
        protected override void InternalTaskExecute()
        {
            base.InternalTaskExecute();
            PropRowSet mapiRowset = null;

            int[]     midList      = null;
            PropTag[] mapiPropTags = ConvertHelper.ConvertToMapiPropTags(this.propertyTags);
            base.NspiContextCallWrapper("ResolveNames", () => this.Context.ResolveNames(this.NspiState, mapiPropTags, this.names, out midList, out mapiRowset));
            if (base.Status == NspiStatus.Success)
            {
                this.returnCodePage = base.NspiState.CodePage;
                this.returnMids     = midList;
                this.returnRowset   = ConvertHelper.ConvertFromMapiPropRowSet(mapiRowset, this.returnCodePage);
            }
            NspiDispatchTask.NspiTracer.TraceDebug <int>((long)base.ContextHandle, "Rows returned: {0}", (mapiRowset == null) ? 0 : mapiRowset.Rows.Count);
        }
        // Token: 0x06000110 RID: 272 RVA: 0x00005E64 File Offset: 0x00004064
        protected override void InternalTaskExecute()
        {
            base.InternalTaskExecute();
            if (this.target == null)
            {
                NspiDispatchTask.NspiTracer.TraceError((long)base.ContextHandle, "Target is null");
                throw new NspiException(NspiStatus.GeneralFailure, "Target is null");
            }
            PropValue mapiPropValue = ConvertHelper.ConvertToMapiPropValue(this.target.Value);

            PropTag[]  mapiPropTags = ConvertHelper.ConvertToMapiPropTags(this.propertyTags);
            PropRowSet mapiRowset   = null;

            base.NspiContextCallWrapper("SeekEntries", () => this.Context.SeekEntries(this.NspiState, mapiPropValue, this.restriction, mapiPropTags, out mapiRowset));
            if (base.Status == NspiStatus.Success)
            {
                this.returnState  = base.NspiState;
                this.returnRowset = ConvertHelper.ConvertFromMapiPropRowSet(mapiRowset, MarshalHelper.GetString8CodePage(base.NspiState));
                base.TraceNspiState();
                NspiDispatchTask.NspiTracer.TraceDebug <int>((long)base.ContextHandle, "Rows returned: {0}", (mapiRowset == null) ? 0 : mapiRowset.Rows.Count);
            }
        }