Example #1
0
        internal EventBus(AtataContext context, IEnumerable <EventSubscriptionItem> eventSubscriptions)
        {
            _context = context.CheckNotNull(nameof(context));

            if (eventSubscriptions != null)
            {
                foreach (var subscription in eventSubscriptions)
                {
                    Subscribe(subscription.EventType, subscription.EventHandler);
                }
            }
        }
 public AtataContextLogEventInfoFactory(AtataContext context)
 {
     _context = context.CheckNotNull(nameof(context));
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AtataNavigator"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 public AtataNavigator(AtataContext context)
 {
     this.context = context.CheckNotNull(nameof(context));
 }