/// <summary> /// Use the specified screenshot consumer. /// </summary> /// <param name="consumer">The screenshot consumer.</param> /// <returns>The same <see cref="LogManager"/> instance.</returns> public LogManager Use(IScreenshotConsumer consumer) { consumer.CheckNotNull(nameof(consumer)); screenshotConsumers.Add(consumer); return(this); }
/// <summary> /// Adds the screenshot consumer. /// </summary> /// <param name="typeNameOrAlias">The type name or alias of the log consumer.</param> /// <returns>The <see cref="AtataContextBuilder{TLogConsumer}"/> instance.</returns> public AtataContextBuilder <IScreenshotConsumer> AddScreenshotConsumer(string typeNameOrAlias) { IScreenshotConsumer consumer = ScreenshotConsumerAliases.Resolve(typeNameOrAlias); return(AddScreenshotConsumer(consumer)); }
/// <summary> /// Use the specified screenshot consumer. /// </summary> /// <param name="consumer">The screenshot consumer.</param> /// <returns>The same <see cref="LogManager"/> instance.</returns> public LogManager Use(IScreenshotConsumer consumer) { consumer.CheckNotNull(nameof(consumer)); screenshotConsumers.Add(consumer); return this; }