-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore ActionEventHandler
when null - UI.Demo
#199
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I'm not sure if this is right, the IEventsViewModel is something like this. public interface IEventsViewModel : ISnoopViewModel
{
void OnNavigatedTo();
void OnNavigatedFrom();
} |
Or this. 😀 public interface IEventsViewModel : INavigationAware, ISnoopViewModel
{
} |
or this 😉 public interface IEventsViewModel : INavigationAware, ISnoopViewModel; in C# 12 you can use ; instead of {} |
Done! I added a Subscribe/Unsubscribe in the moq. Strange that all de RevitApi.dll is loaded when you go into the Events. |
Awesome, thanks) |
There because of using |
Summary of the Pull Request
When using
UI.Demo
theApplication.ActionEventHandler
is null.The
EventMonitor.Subscribe
andEventMonitor.Unsubscribe
throw exception.Quality Checklist