Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultBindableOnToTogglable{TEvent,TEntity}"/> class.
 /// </summary>
 /// <param name="staticEventBinder">
 /// The static event binder.
 /// </param>
 /// <param name="filter">
 /// The filter.
 /// </param>
 public DefaultBindableOnToTogglable(
     StaticEventBinder <TContext> staticEventBinder,
     Func <TEvent, bool> filter)
 {
     this.m_StaticEventBinder = staticEventBinder;
     this.m_Filter            = filter;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultBindableOnTogglable{TEvent,TEntity}"/> class.
 /// </summary>
 /// <param name="staticEventBinder">
 /// The static event binder.
 /// </param>
 /// <param name="filter">
 /// The filter.
 /// </param>
 public DefaultBindableOnTogglable(StaticEventBinder <TContext> staticEventBinder, Func <TEvent, bool> filter)
     : base(staticEventBinder, filter, t => true)
 {
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultBindableOnTo{TEvent,TEntity,TEntityAction}"/> class.
 /// </summary>
 /// <param name="staticEventBinder">
 /// The static event binder.
 /// </param>
 /// <param name="kernel">
 /// The dependency injection kernel.
 /// </param>
 /// <param name="filter">
 /// The filter.
 /// </param>
 public DefaultBindableOnTo(StaticEventBinder <TContext> staticEventBinder, Func <TEvent, bool> filter, Func <TEntity, bool> entityFilter)
 {
     this.m_StaticEventBinder = staticEventBinder;
     this.m_Filter            = filter;
     this.m_EntityFilter      = entityFilter;
 }
Ejemplo n.º 4
0
 public DefaultBindableTo(IKernel kernel, StaticEventBinder <TContext> staticEventBinder, Func <TEvent, bool> filter)
 {
     _kernel = kernel;
     this.m_StaticEventBinder = staticEventBinder;
     this.m_Filter            = filter;
 }