/// <summary> /// Initializes a new instance of the <see cref="GlimpseAdomdConnection"/> class. /// </summary> /// <param name="connection">An already wrapped adomdconnection.</param> /// <param name="messagePublisher">The message publisher.</param> internal GlimpseAdomdConnection(IAdomdConnection connection, ITimedMessagePublisher messagePublisher) { if (connection == null) { throw new ArgumentNullException("connection"); } if (messagePublisher == null) { throw new ArgumentNullException("messagePublisher"); } _innerConnection = connection; _messagePublisher = messagePublisher; _connectionId = Guid.NewGuid(); }
/// <summary> /// Initializes a new instance of the <see cref="GlimpseAdomdConnection"/> class. /// </summary> /// <param name="connection">An already wrapped adomdconnection.</param> /// <param name="messagePublisher">The message publisher.</param> internal GlimpseAdomdConnection(IAdomdConnection connection, ITimedMessagePublisher messagePublisher) { if (connection == null) { throw new ArgumentNullException("connection"); } if (messagePublisher == null) { throw new ArgumentNullException("messagePublisher"); } _innerConnection = connection; _messagePublisher = messagePublisher; _connectionId = Guid.NewGuid(); }
/// <summary> /// Initializes a new instance of the <see cref="GlimpseAdomdCommand"/> class. /// </summary> /// <param name="command">The wrapped adomdcommand.</param> /// <param name="connection">The wrapped adomdconnection.</param> /// <param name="connectionId">The Id of its related glimpseadomdconnection.</param> public GlimpseAdomdCommand(IAdomdCommand command, IAdomdConnection connection, Guid connectionId) { if (command == null) { throw new ArgumentNullException("command"); } if (connection == null) { throw new ArgumentNullException("connection"); } _innerCommand = command; _innerConnection = connection; _connectionId = connectionId; _commandExecutor = new CommandExecutor(this); }
/// <summary> /// Initializes a new instance of the <see cref="GlimpseAdomdConnection"/> class. /// </summary> /// <param name="connection">An already wrapped adomdconnection.</param> public GlimpseAdomdConnection(IAdomdConnection connection) : this(connection, new TimedMessagePublisher()) { }
/// <summary> /// Initializes a new instance of the <see cref="GlimpseAdomdConnection"/> class. /// </summary> /// <param name="connection">An already wrapped adomdconnection.</param> public GlimpseAdomdConnection(IAdomdConnection connection) : this(connection, new TimedMessagePublisher()) { }