public static BridgeContext Bridge(this BusConfiguration busConfiguration) { if (_context == null) { _context = new BridgeContext(); busConfiguration.RegisterComponents(c => c.RegisterSingleton(_context)); } return(_context); }