ClearCanvas.ImageServer.Enterprise.SqlServer.PersistentStore.OpenReadContext C# (CSharp) Метод

OpenReadContext() публичный Метод

public OpenReadContext ( ) : IReadContext
Результат IReadContext
        public IReadContext OpenReadContext()
        {
            try
            {
                SqlConnection connection = OpenConnection();
                
                return new ReadContext(connection, _transactionNotifier);
            }
            catch (Exception e)
            {
                Platform.Log(LogLevel.Error, e, "Exception when opening database connection for reading");

                throw new PersistenceException("Unexpected exception opening database connection for reading", e);
            }
        }