Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EventHubSubscriberHost"/>.
 /// </summary>
 /// <param name="args">The optional <see cref="EventHubSubscriberHost"/>.</param>
 private EventHubSubscriberHost(EventSubscriberHostArgs args) : base(args)
 {
     if (args.AuditWriter == null)
     {
         args.AuditWriter = (result) => throw new EventSubscriberStopException(result);
     }
 }
Beispiel #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="EventHubSubscriberHost"/> with the specified <see cref="EventSubscriberHostArgs"/>.
        /// </summary>
        /// <param name="args">The optional <see cref="EventHubSubscriberHost"/>.</param>
        public EventHubSubscriberHost(EventSubscriberHostArgs args) : base(args)
        {
            if (args == null)
            {
                throw new ArgumentNullException(nameof(args));
            }

            if (args.AuditWriter == null)
            {
                args.AuditWriter = (result) => throw new EventSubscriberStopException(result);
            }
        }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EventDataSubscriberHost"/>.
 /// </summary>
 /// <param name="args">The <see cref="EventSubscriberHostArgs"/>.</param>
 public EventDataSubscriberHost(EventSubscriberHostArgs args) : base(args)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EventDataSubscriberHost"/>.
 /// </summary>
 /// <param name="args">The <see cref="EventSubscriberHostArgs"/>.</param>
 private EventDataSubscriberHost(EventSubscriberHostArgs args) : base(args)
 {
 }
 /// <summary>
 /// Creates a new instance of the <see cref="EventDataSubscriberHost"/> using the specified <paramref name="args"/>.
 /// </summary>
 /// <param name="args">The optional <see cref="EventSubscriberHostArgs"/>.</param>
 /// <returns>The <see cref="EventDataSubscriberHost"/>.</returns>
 public static EventDataSubscriberHost Create(EventSubscriberHostArgs args = null) => new EventDataSubscriberHost(args);
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EventSubscriberHost"/>.
 /// </summary>
 /// <param name="args">The <see cref="EventSubscriberHostArgs"/>.</param>
 protected EventSubscriberHost(EventSubscriberHostArgs args = null) => Args = Check.NotNull(args, nameof(args));
 /// <summary>
 /// Creates a new instance of the <see cref="EventHubSubscriberHost"/> using the specified <paramref name="args"/>.
 /// </summary>
 /// <param name="args">The <see cref="EventSubscriberHostArgs"/>.</param>
 /// <returns>The <see cref="EventHubSubscriberHost"/>.</returns>
 public static EventHubSubscriberHost Create(EventSubscriberHostArgs args) => new EventHubSubscriberHost(args);
Beispiel #8
0
 /// <summary>
 /// Creates a new instance of the <see cref="EventHubSubscriberHost"/> using the specified <paramref name="args"/>.
 /// </summary>
 /// <param name="args">The <see cref="EventSubscriberHostArgs"/>.</param>
 /// <returns>The <see cref="EventHubSubscriberHost"/>.</returns>
 public static EventHubSubscriberHost Create(EventSubscriberHostArgs args) => new EventHubSubscriberHost(Check.NotNull(args, nameof(args)));