// Token: 0x0600010C RID: 268 RVA: 0x00005DA4 File Offset: 0x00003FA4
 public NspiSeekEntriesDispatchTask(CancelableAsyncCallback asyncCallback, object asyncState, ProtocolRequestInfo protocolRequestInfo, NspiContext context, NspiSeekEntriesFlags flags, NspiState state, PropertyValue?target, int[] restriction, PropertyTag[] propertyTags) : base(asyncCallback, asyncState, protocolRequestInfo, context, state)
 {
     this.flags        = flags;
     this.target       = target;
     this.restriction  = restriction;
     this.propertyTags = propertyTags;
 }
Exemple #2
0
 // Token: 0x0600011F RID: 287 RVA: 0x0000616D File Offset: 0x0000436D
 public RfriDispatchTask(CancelableAsyncCallback asyncCallback, object asyncState, ProtocolRequestInfo protocolRequestInfo, ClientBinding clientBinding, RfriContext context) : base(asyncCallback, asyncState)
 {
     this.status = RfriStatus.GeneralFailure;
     this.protocolRequestInfo = protocolRequestInfo;
     this.clientBinding       = clientBinding;
     this.context             = context;
 }
Exemple #3
0
 public NspiQueryRowsDispatchTask(CancelableAsyncCallback asyncCallback, object asyncState, ProtocolRequestInfo protocolRequestInfo, NspiContext context, NspiQueryRowsFlags flags, NspiState state, int[] mids, int rowCount, PropertyTag[] propertyTags) : base(asyncCallback, asyncState, protocolRequestInfo, context, state)
 {
     this.flags        = flags;
     this.mids         = mids;
     this.rowCount     = rowCount;
     this.propertyTags = propertyTags;
 }
 public NspiModLinkAttDispatchTask(CancelableAsyncCallback asyncCallback, object asyncState, ProtocolRequestInfo protocolRequestInfo, NspiContext context, NspiModLinkAttFlags flags, PropertyTag propertyTag, int mid, byte[][] rawEntryIds) : base(asyncCallback, asyncState, protocolRequestInfo, context)
 {
     this.flags       = flags;
     this.propertyTag = propertyTag;
     this.mid         = mid;
     this.rawEntryIds = rawEntryIds;
 }
Exemple #5
0
        // Token: 0x06000313 RID: 787 RVA: 0x0001366C File Offset: 0x0001186C
        private ICancelableAsyncResult BeginWrapper(string methodName, CancelableAsyncCallback asyncCallback, object asyncState, ClientBinding clientBinding, string legacyDn, Func <RfriContext, RfriDispatchTask> beginDelegate)
        {
            ICancelableAsyncResult asyncResult = null;

            RfriAsyncDispatch.ConditionalExceptionWrapper(ExTraceGlobals.ReferralTracer.IsTraceEnabled(TraceType.DebugTrace), delegate
            {
                if (ExTraceGlobals.ReferralTracer.IsTraceEnabled(TraceType.DebugTrace))
                {
                    using (ClientSecurityContext clientSecurityContext = clientBinding.GetClientSecurityContext())
                    {
                        ExTraceGlobals.ReferralTracer.TraceDebug(0, 0L, "{0} started. LegacyDn={1}. ClientAddress={2}. ServerAddress={3}. ProtocolSequence={4}. EndPoint={5}. IsEncrypted={6}. ClientSecurityContext={7}.", new object[]
                        {
                            methodName,
                            legacyDn,
                            clientBinding.ClientAddress,
                            clientBinding.ServerAddress,
                            clientBinding.ProtocolSequence,
                            clientBinding.ClientEndpoint,
                            clientBinding.IsEncrypted,
                            clientSecurityContext
                        });
                    }
                }
                FailureAsyncResult <RfriStatus> failureAsyncResult = null;
                this.CheckShuttingDown();
                try
                {
                    using (DisposeGuard disposeGuard = default(DisposeGuard))
                    {
                        RfriContext rfriContext = RfriAsyncDispatch.CreateRfriContext(clientBinding);
                        disposeGuard.Add <RfriContext>(rfriContext);
                        RfriDispatchTask rfriDispatchTask = beginDelegate(rfriContext);
                        disposeGuard.Add <RfriDispatchTask>(rfriDispatchTask);
                        asyncResult = rfriDispatchTask.AsyncResult;
                        this.SubmitTask(rfriDispatchTask);
                        disposeGuard.Success();
                    }
                }
                catch (FailRpcException ex)
                {
                    failureAsyncResult = new FailureAsyncResult <RfriStatus>((RfriStatus)ex.ErrorCode, IntPtr.Zero, ex, asyncCallback, asyncState);
                    asyncResult        = failureAsyncResult;
                }
                catch (RfriException ex2)
                {
                    failureAsyncResult = new FailureAsyncResult <RfriStatus>(ex2.Status, IntPtr.Zero, ex2, asyncCallback, asyncState);
                    asyncResult        = failureAsyncResult;
                }
                if (failureAsyncResult != null && !ThreadPool.QueueUserWorkItem(RfriAsyncDispatch.FailureWaitCallback, failureAsyncResult))
                {
                    failureAsyncResult.InvokeCallback();
                }
                ExTraceGlobals.ReferralTracer.TraceDebug <string>(0, 0L, "{0} succeeded.", methodName);
            }, delegate(Exception exception)
            {
                ExTraceGlobals.ReferralTracer.TraceDebug <string, Exception>(0, 0L, "{0} failed. Exception={1}.", methodName, exception);
            });
            return(asyncResult);
        }
Exemple #6
0
 // Token: 0x060000DC RID: 220 RVA: 0x000052E8 File Offset: 0x000034E8
 public NspiGetTemplateInfoDispatchTask(CancelableAsyncCallback asyncCallback, object asyncState, ProtocolRequestInfo protocolRequestInfo, NspiContext context, NspiGetTemplateInfoFlags flags, int type, string legacyDN, int codePage, int locale) : base(asyncCallback, asyncState, protocolRequestInfo, context)
 {
     this.flags    = flags;
     this.type     = type;
     this.legacyDN = legacyDN;
     this.codePage = codePage;
     this.locale   = locale;
 }
        // Token: 0x060001A5 RID: 421 RVA: 0x00008FA8 File Offset: 0x000071A8
        private ICancelableAsyncResult BeginWrapper(string methodName, CancelableAsyncCallback asyncCallback, object asyncState, bool rundownContextOnFailure, Func <NspiContext, NspiDispatchTask> beginDelegate, Func <NspiContext> contextFactory)
        {
            int contextHandle = 0;
            ICancelableAsyncResult asyncResult = null;

            NspiAsyncDispatch.ConditionalExceptionWrapper(ExTraceGlobals.NspiTracer.IsTraceEnabled(TraceType.DebugTrace), delegate
            {
                bool flag = false;
                FailureAsyncResult <NspiStatus> failureAsyncResult = null;
                try
                {
                    this.CheckShuttingDown();
                    try
                    {
                        using (DisposeGuard disposeGuard = default(DisposeGuard))
                        {
                            NspiContext nspiContext           = contextFactory();
                            contextHandle                     = ((nspiContext != null) ? nspiContext.ContextHandle : 0);
                            NspiDispatchTask nspiDispatchTask = beginDelegate(nspiContext);
                            disposeGuard.Add <NspiDispatchTask>(nspiDispatchTask);
                            asyncResult = nspiDispatchTask.AsyncResult;
                            this.SubmitTask(nspiDispatchTask);
                            disposeGuard.Success();
                        }
                        flag = true;
                    }
                    catch (FailRpcException ex)
                    {
                        failureAsyncResult = new FailureAsyncResult <NspiStatus>((NspiStatus)ex.ErrorCode, new IntPtr(contextHandle), ex, asyncCallback, asyncState);
                        asyncResult        = failureAsyncResult;
                    }
                    catch (NspiException ex2)
                    {
                        failureAsyncResult = new FailureAsyncResult <NspiStatus>(ex2.Status, new IntPtr(contextHandle), ex2, asyncCallback, asyncState);
                        asyncResult        = failureAsyncResult;
                    }
                    if (failureAsyncResult != null && !ThreadPool.QueueUserWorkItem(NspiAsyncDispatch.FailureWaitCallback, failureAsyncResult))
                    {
                        failureAsyncResult.InvokeCallback();
                    }
                    ExTraceGlobals.NspiTracer.TraceDebug <string, int>(0, 0L, "{0} succeeded. ContextHandle={1}", methodName, contextHandle);
                }
                finally
                {
                    if (!flag && rundownContextOnFailure && contextHandle != 0)
                    {
                        this.ContextHandleRundown(new IntPtr(contextHandle));
                    }
                }
            }, delegate(Exception exception)
            {
                ExTraceGlobals.NspiTracer.TraceDebug <string, int, Exception>(0, 0L, "{0} failed. ContextHandle={1}, Exception={2}.", methodName, contextHandle, exception);
            });
            return(asyncResult);
        }
Exemple #8
0
 // Token: 0x060000C3 RID: 195 RVA: 0x00004D28 File Offset: 0x00002F28
 public NspiGetMatchesDispatchTask(CancelableAsyncCallback asyncCallback, object asyncState, ProtocolRequestInfo protocolRequestInfo, NspiContext context, NspiGetMatchesFlags flags, NspiState state, int[] mids, int interfaceOptions, Restriction restriction, IntPtr pPropName, int maxRows, PropertyTag[] propertyTags) : base(asyncCallback, asyncState, protocolRequestInfo, context, state)
 {
     this.flags            = flags;
     this.interfaceOptions = interfaceOptions;
     this.restriction      = restriction;
     this.maxRows          = maxRows;
     this.propertyTags     = propertyTags;
     if (this.maxRows < 0 || this.maxRows > 100000)
     {
         this.maxRows = 100000;
     }
 }
Exemple #9
0
 // Token: 0x06000072 RID: 114 RVA: 0x00003E9A File Offset: 0x0000209A
 public WorkloadManagerDispatchTask(CancelableAsyncCallback asyncCallback, object asyncState) : base(asyncCallback, asyncState)
 {
     this.workloadSettings = new WorkloadSettings(WorkloadType.Domt, false);
 }
Exemple #10
0
 public NspiResolveNamesDispatchTask(CancelableAsyncCallback asyncCallback, object asyncState, ProtocolRequestInfo protocolRequestInfo, NspiContext context, NspiResolveNamesFlags flags, NspiState state, PropertyTag[] propertyTags, byte[][] names) : base(asyncCallback, asyncState, protocolRequestInfo, context, state)
 {
     this.flags        = flags;
     this.propertyTags = propertyTags;
     this.names        = names;
 }
 public NspiStateDispatchTask(CancelableAsyncCallback asyncCallback, object asyncState, ProtocolRequestInfo protocolRequestInfo, NspiContext context, NspiState state) : base(asyncCallback, asyncState, protocolRequestInfo, context)
 {
     this.state = state;
 }
Exemple #12
0
 // Token: 0x0600006A RID: 106 RVA: 0x00003E41 File Offset: 0x00002041
 public DispatchTask(CancelableAsyncCallback asyncCallback, object asyncState)
 {
     this.asyncResult = new DispatchTaskAsyncResult(this, asyncCallback, asyncState);
 }
Exemple #13
0
 // Token: 0x06000086 RID: 134 RVA: 0x000040D0 File Offset: 0x000022D0
 public NspiDispatchTask(CancelableAsyncCallback asyncCallback, object asyncState, ProtocolRequestInfo protocolRequestInfo, NspiContext context) : base(asyncCallback, asyncState)
 {
     this.status = NspiStatus.GeneralFailure;
     this.protocolRequestInfo = protocolRequestInfo;
     this.context             = context;
 }
 public RfriGetMailboxUrlDispatchTask(CancelableAsyncCallback asyncCallback, object asyncState, ProtocolRequestInfo protocolRequestInfo, ClientBinding clientBinding, RfriContext context, RfriGetMailboxUrlFlags flags, string hostname, string serverDn) : base(asyncCallback, asyncState, protocolRequestInfo, clientBinding, context)
 {
     this.flags    = flags;
     this.hostname = hostname;
     this.serverDn = serverDn;
 }
 // Token: 0x0600009C RID: 156 RVA: 0x000045E1 File Offset: 0x000027E1
 public NspiBindDispatchTask(CancelableAsyncCallback asyncCallback, object asyncState, ProtocolRequestInfo protocolRequestInfo, ClientBinding clientBinding, NspiContext context, NspiBindFlags flags, NspiState state, Guid?serverGuid) : base(asyncCallback, asyncState, protocolRequestInfo, context, state)
 {
     this.clientBinding = clientBinding;
     this.flags         = flags;
     this.serverGuid    = serverGuid;
 }
 // Token: 0x060001A4 RID: 420 RVA: 0x00008D90 File Offset: 0x00006F90
 private ICancelableAsyncResult BeginContextWrapper(string methodName, CancelableAsyncCallback asyncCallback, object asyncState, IntPtr contextHandle, Func <NspiContext, NspiDispatchTask> beginDelegate)
 {
     return(this.BeginWrapper(methodName, asyncCallback, asyncState, false, beginDelegate, () => ClientContextCache.GetContext(contextHandle.ToInt32())));
 }
 // Token: 0x060000A9 RID: 169 RVA: 0x0000495E File Offset: 0x00002B5E
 public NspiDeleteEntriesDispatchTask(CancelableAsyncCallback asyncCallback, object asyncState, ProtocolRequestInfo protocolRequestInfo, NspiContext context, NspiDeleteEntriesFlags flags, int mid, byte[][] entryIds) : base(asyncCallback, asyncState, protocolRequestInfo, context)
 {
     this.flags = flags;
     this.mid   = mid;
 }
Exemple #18
0
 // Token: 0x06000307 RID: 775 RVA: 0x00012F50 File Offset: 0x00011150
 public ICancelableAsyncResult BeginGetFQDNFromLegacyDN(ProtocolRequestInfo protocolRequestInfo, ClientBinding clientBinding, RfriGetFQDNFromLegacyDNFlags flags, string serverDn, CancelableAsyncCallback asyncCallback, object asyncState)
 {
     return(this.BeginWrapper("BeginGetFQDNFromLegacyDN", asyncCallback, asyncState, clientBinding, serverDn, (RfriContext context) => new RfriGetFQDNFromLegacyDNDispatchTask(asyncCallback, asyncState, protocolRequestInfo, clientBinding, context, flags, serverDn)));
 }
Exemple #19
0
 // Token: 0x0600030B RID: 779 RVA: 0x00013198 File Offset: 0x00011398
 public ICancelableAsyncResult BeginGetMailboxUrl(ProtocolRequestInfo protocolRequestInfo, ClientBinding clientBinding, RfriGetMailboxUrlFlags flags, string hostname, string serverDn, CancelableAsyncCallback asyncCallback, object asyncState)
 {
     return(this.BeginWrapper("BeginGetMailboxUrl", asyncCallback, asyncState, clientBinding, serverDn, (RfriContext context) => new RfriGetMailboxUrlDispatchTask(asyncCallback, asyncState, protocolRequestInfo, clientBinding, context, flags, hostname, serverDn)));
 }
 // Token: 0x06000177 RID: 375 RVA: 0x00007580 File Offset: 0x00005780
 public ICancelableAsyncResult BeginUpdateStat(ProtocolRequestInfo protocolRequestInfo, IntPtr contextHandle, NspiUpdateStatFlags flags, NspiState state, bool deltaRequested, CancelableAsyncCallback asyncCallback, object asyncState)
 {
     return(this.BeginContextWrapper("BeginUpdateStat", asyncCallback, asyncState, contextHandle, (NspiContext context) => new NspiUpdateStatDispatchTask(asyncCallback, asyncState, protocolRequestInfo, context, flags, state, deltaRequested)));
 }
 // Token: 0x06000179 RID: 377 RVA: 0x000076C4 File Offset: 0x000058C4
 public ICancelableAsyncResult BeginQueryRows(ProtocolRequestInfo protocolRequestInfo, IntPtr contextHandle, NspiQueryRowsFlags flags, NspiState state, int[] mids, int rowCount, PropertyTag[] propTags, CancelableAsyncCallback asyncCallback, object asyncState)
 {
     return(this.BeginContextWrapper("BeginQueryRows", asyncCallback, asyncState, contextHandle, (NspiContext context) => new NspiQueryRowsDispatchTask(asyncCallback, asyncState, protocolRequestInfo, context, flags, state, mids, rowCount, propTags)));
 }
Exemple #22
0
 // Token: 0x060000EE RID: 238 RVA: 0x000056D5 File Offset: 0x000038D5
 public NspiQueryColumnsDispatchTask(CancelableAsyncCallback asyncCallback, object asyncState, ProtocolRequestInfo protocolRequestInfo, NspiContext context, NspiQueryColumnsFlags flags, NspiQueryColumnsMapiFlags mapiFlags) : base(asyncCallback, asyncState, protocolRequestInfo, context)
 {
     this.flags     = flags;
     this.mapiFlags = mapiFlags;
 }
 public NspiGetHierarchyInfoDispatchTask(CancelableAsyncCallback asyncCallback, object asyncState, ProtocolRequestInfo protocolRequestInfo, NspiContext context, NspiGetHierarchyInfoFlags flags, NspiState state, int version) : base(asyncCallback, asyncState, protocolRequestInfo, context, state)
 {
     this.flags   = flags;
     this.version = version;
 }
 public NspiResortRestrictionDispatchTask(CancelableAsyncCallback asyncCallback, object asyncState, ProtocolRequestInfo protocolRequestInfo, NspiContext context, NspiResortRestrictionFlags flags, NspiState state, int[] mids) : base(asyncCallback, asyncState, protocolRequestInfo, context, state)
 {
     this.flags = flags;
     this.mids  = mids;
 }
Exemple #25
0
 // Token: 0x060000B0 RID: 176 RVA: 0x000049FF File Offset: 0x00002BFF
 public NspiDNToEphDispatchTask(CancelableAsyncCallback asyncCallback, object asyncState, ProtocolRequestInfo protocolRequestInfo, NspiContext context, NspiDNToEphFlags flags, string[] legacyDNs) : base(asyncCallback, asyncState, protocolRequestInfo, context)
 {
     this.flags     = flags;
     this.legacyDNs = legacyDNs;
 }
Exemple #26
0
 // Token: 0x060000D6 RID: 214 RVA: 0x000051A8 File Offset: 0x000033A8
 public NspiGetPropsDispatchTask(CancelableAsyncCallback asyncCallback, object asyncState, ProtocolRequestInfo protocolRequestInfo, NspiContext context, NspiGetPropsFlags flags, NspiState state, PropertyTag[] propertyTags) : base(asyncCallback, asyncState, protocolRequestInfo, context, state)
 {
     this.flags        = flags;
     this.propertyTags = propertyTags;
 }
 // Token: 0x06000118 RID: 280 RVA: 0x00006007 File Offset: 0x00004207
 public NspiUpdateStatDispatchTask(CancelableAsyncCallback asyncCallback, object asyncState, ProtocolRequestInfo protocolRequestInfo, NspiContext context, NspiUpdateStatFlags flags, NspiState state, bool deltaRequested) : base(asyncCallback, asyncState, protocolRequestInfo, context, state)
 {
     this.flags          = flags;
     this.deltaRequested = deltaRequested;
 }
Exemple #28
0
 public NspiUnbindDispatchTask(CancelableAsyncCallback asyncCallback, object asyncState, ProtocolRequestInfo protocolRequestInfo, NspiContext context, NspiUnbindFlags flags) : base(asyncCallback, asyncState, protocolRequestInfo, context)
 {
     this.flags = flags;
 }
Exemple #29
0
 public RfriGetFQDNFromLegacyDNDispatchTask(CancelableAsyncCallback asyncCallback, object asyncState, ProtocolRequestInfo protocolRequestInfo, ClientBinding clientBinding, RfriContext context, RfriGetFQDNFromLegacyDNFlags flags, string serverDn) : base(asyncCallback, asyncState, protocolRequestInfo, clientBinding, context)
 {
     this.flags    = flags;
     this.serverDn = serverDn;
 }
 public NspiGetNamesFromIDsDispatchTask(CancelableAsyncCallback asyncCallback, object asyncState, ProtocolRequestInfo protocolRequestInfo, NspiContext context, NspiGetNamesFromIDsFlags flags, Guid?guid, PropertyTag[] propertyTags) : base(asyncCallback, asyncState, protocolRequestInfo, context)
 {
     this.flags = flags;
     this.guid  = guid;
 }