blob: 9117489c80f0edee39acf8cb644b9e18da3bc4ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
using Notepad.Infrastructure.Container;
namespace Notepad.Presentation.Core {
public interface IPresenterRegistry {
Presenter FindAnImplementationOf<Presenter>() where Presenter : IPresenter;
}
public class RegisteredPresenter : IPresenterRegistry {
public Presenter FindAnImplementationOf<Presenter>() where Presenter : IPresenter {
return Resolve.DependencyFor<Presenter>();
}
}
}
|