root/UnityWeb/UnityWeb/Repository/NHibernateDataAccess/Conversation/Conversation.cs

7576
26
        /// </summary>
26
        /// </summary>
27
        public void Start()
27
        public void Start()
28
        {
28
        {
29
            if (Session != null)
29
            if (Session != null && (Session.IsOpen || Session.IsConnected))
30
            {
30
            {
31
                Abort();
31
                Abort();
32
            }
32
            }
...
...
40
        public void Pause()
40
        public void Pause()
41
        {
41
        {
42
            Commit(Session);
42
            Commit(Session);
43
            
44
        }
43
        }
45
44
46
        /// <summary>
45
        /// <summary>
...
...
51
            if (Session == null)
50
            if (Session == null)
52
                Start();
51
                Start();
53
52
54
            if (Session == null) 
53
            if (Session == null)
55
                throw new AccessViolationException("Session could not be created");
54
                throw new AccessViolationException("Session could not be created");
56
55
57
            if (!Session.IsConnected)
56
            if (!Session.IsConnected)