public IMessageQueueSession OpenSession() { if (_session == null) { _session = _sessionFactory.OpenSession(); } else if (_session.IsOpen == false) { _session.Dispose(); _session = _sessionFactory.OpenSession(); } return(_session); }
public IMessageQueueSession OpenSession() { return(_sessionFactory.OpenSession()); }