Esempio n. 1
0
        public SqlConnection CreateConnection(
            string connectionString = null, bool open = true)
        {
            var con = new SqlConnection(
                connectionString ?? GetConnectionString());

            con.AddMessagesManagement(SyncContext, ProcessMessage);
            if (open)
            {
                con.Open();
            }
            return(con);
        }