private void ExecuteScope(ScopeType type, bool isInTransactionScope) { if (type == ScopeType.Event) { _connectionContext.EventScope(); return; } if (isInTransactionScope) { _connectionContext.TransactionScope(); } else { _connectionContext.Scope(); } }