Amnesia.SessionTracker.Exclusive C# (CSharp) Method

Exclusive() public method

Stop all new activities and wait for the current ones to complete. When this method returns, all activities (execpt for the current Amnesia one) will have completed and any future activities will be denied.
public Exclusive ( int timeoutMS, ILog log ) : IDisposable
timeoutMS int
log ILog
return IDisposable
        public IDisposable Exclusive(int timeoutMS, ILog log)
        {
            Pause(timeoutMS, log);

            return new UndoableAction(delegate
            {
                Resume();
            });
        }