Ejemplo n.º 1
0
 ///-------------------------------------------------------------------------------------------------
 /// <summary>
 ///  Determine if we should be propagated.
 /// </summary>
 /// <param name="evt">
 ///  The event.
 /// </param>
 /// <returns>
 ///  true if it succeeds, false if it fails.
 /// </returns>
 ///-------------------------------------------------------------------------------------------------
 public virtual bool ShouldBePropagated(IEvent evt)
 {
     return(OutputProperty != null &&
            evt.TopEvent &&
            (DomainModel == null || String.Compare(DomainModel.Name, evt.Domain, StringComparison.OrdinalIgnoreCase) == 0) &&
            (String.Compare(DomainModel.ExtensionName, evt.ExtensionName, StringComparison.OrdinalIgnoreCase) == 0) &&
            OutputProperty.ShouldBePropagated(evt));
 }
Ejemplo n.º 2
0
 set => SetValue(OutputProperty, value);