/// <summary> /// Raises the PullUpFeatureCalled event /// </summary> /// <param name="eventArgs">The event data</param> protected virtual void OnPullUpFeatureCalled(OperationCallEventArgs eventArgs) { System.EventHandler <OperationCallEventArgs> handler = this.PullUpFeatureCalled; if ((handler != null)) { handler.Invoke(this, eventArgs); } }
/// <summary> /// /// </summary> /// <param name="methodName"></param> public void PullUpFeature(string methodName) { System.Action <NMF.Models.Tests.Architecture.IClass, string> handler = OperationBroker.Instance.GetRegisteredDelegate <System.Action <NMF.Models.Tests.Architecture.IClass, string> >(_pullUpFeatureOperation); if ((handler != null)) { } else { throw new System.InvalidOperationException("There is no implementation for method pullUpFeature registered. Use the method br" + "oker to register a method implementation."); } OperationCallEventArgs e = new OperationCallEventArgs(this, _pullUpFeatureOperation.Value, methodName); this.OnPullUpFeatureCalling(e); this.OnBubbledChange(BubbledChangeEventArgs.OperationCalling(this, _pullUpFeatureOperation.Value, e)); handler.Invoke(this, methodName); this.OnPullUpFeatureCalled(e); this.OnBubbledChange(BubbledChangeEventArgs.OperationCalled(this, _pullUpFeatureOperation.Value, e)); }