/// <summary>
 /// Initializes a new instance of the <see cref="AsyncDomainEvents" /> class.
 /// </summary>
 /// <param name="container">Griffin.Container.</param>
 /// <param name="scopeListener">Used to handle errors and scoping setup/teardown.</param>
 public AsyncDomainEvents(IParentContainer container, IScopeListener scopeListener)
 {
     _container          = container;
     _scopeListener      = scopeListener;
     _method             = GetType().GetMethod("TriggerPublish", BindingFlags.NonPublic | BindingFlags.Instance);
     _transactionMonitor = new TransactionMonitor(TriggerEvents);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestScope"/> class.
 /// </summary>
 /// <param name="listener">The listener.</param>
 public RequestScope(IScopeListener listener)
 {
     _listener = listener;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestScope"/> class.
 /// </summary>
 /// <param name="listener">The listener.</param>
 public RequestScope(IScopeListener listener)
 {
     _listener = listener;
 }