private void WorkWithoutReentry(TestSession session)
 {
     using (_sentry = Guard.AgainstReEntry(_sentry))
     {
         session.DoWork();
     }
 }
 private void WorkWithoutReentry(TestSession session)
 {
     using (_sentry = Guard.AgainstReEntry(_sentry))
     {
         session.DoWork();
     }
 }
        private void WorkWithoutReentry(TestSession session)
        {
#pragma warning disable 618
            using (_sentry = Guard.AgainstReEntry(_sentry))
#pragma warning restore 618
            {
                session.DoWork();
            }
        }
 private void WorkWithReentry(TestSession session, int count)
 {
     using (_sentry = Guard.AgainstReEntry(_sentry))
     {
         session.DoWork();
         if (count == 0)
         {
             WorkWithReentry(session, count + 1);
         }
     }
 }
 private void WorkWithReentry(TestSession session, int count)
 {
     using (_sentry = Guard.AgainstReEntry(_sentry))
     {
         session.DoWork();
         if (count == 0)
         {
             WorkWithReentry(session, count + 1);
         }
     }
 }
        private void WorkWithReentry(TestSession session, int count)
        {
#pragma warning disable 618
            using (_sentry = Guard.AgainstReEntry(_sentry))
#pragma warning restore 618
            {
                session.DoWork();
                if (count == 0)
                {
                    WorkWithReentry(session, count + 1);
                }
            }
        }
 private void WorkWithReentryExpected(TestSession session, int count)
 {
     using (_sentry = Guard.AgainstReEntryExpected(_sentry))
     {
         if (_sentry.HasEntered)
         {
             return;
         }
         session.DoWork();
         if (count == 0)
         {
             WorkWithReentryExpected(session, count + 1);
         }
     }
 }
        private void WorkWithReentryExpected(TestSession session, int count)
        {
#pragma warning disable 618
            using (_sentry = Guard.AgainstReEntryExpected(_sentry))
#pragma warning restore 618
            {
                if (_sentry.HasEntered)
                {
                    return;
                }
                session.DoWork();
                if (count == 0)
                {
                    WorkWithReentryExpected(session, count + 1);
                }
            }
        }
 private void WorkWithReentryExpected(TestSession session, int count)
 {
     using (_sentry = Guard.AgainstReEntryExpected(_sentry))
     {
         if (_sentry.HasEntered)
             return;
         session.DoWork();
         if (count == 0)
         {
             WorkWithReentryExpected(session, count + 1);
         }
     }
 }