Ejemplo n.º 1
0
        public override void Open()
        {
            var start = Stopwatch.GetTimestamp();

            _connection.Open();
            _hooks.ConnectionOpened(this, _context, GetElapsedMilliseconds(start, Stopwatch.GetTimestamp()));
        }
        public override void Open()
        {
            var sw = Stopwatch.StartNew();

            _connection.Open();
            _hooks.ConnectionOpened(this, _context, sw.ElapsedMilliseconds);
        }