-
-
Notifications
You must be signed in to change notification settings - Fork 762
8000
Generated refit interfaces are invalid if the base interface has a non refit method.
// 'Generated.IGeneratedInterface' does not implement interface member 'IBaseInterface.NonRefitMethod()'
var gitHubApi = RestService.For<IGeneratedInterface>("https://api.github.com");
public interface IGeneratedInterface : IBaseInterface
{
[Get("/users")]
Task<string> Get();
}
public interface IBaseInterface
{
void NonRefitMethod();
}
https://github.com/reactiveui/refit
Refit should generate stub implementations which throw an error when called to satisfy the interface. Similar to how non refit methods are handled in non derived refit interfaces.
Rider Windows