reactivemarbles / ObservableEvents

MIT License
120 stars 10 forks source link

Interface with events returns RXPHARM001 Diagnostic Code #161

Open dansiegel opened 1 year ago

dansiegel commented 1 year ago

Description

When working with MAUI's IConnectivity and trying to get an observable for the ConnectivityChanged event. The following results in a RXPHARM001 diagnostic code being raised.

[assembly: GenerateStaticEventObservables(typeof(IConnectivity))]

However if you change this to:

[assembly: GenerateStaticEventObservables(typeof(Connectivity))]

It has no issue creating the extensions. This should work for IConnectivity as well.