diff options
Diffstat (limited to 'src/Notepad/Presentation/Core/IPresenterRegistry.cs')
| -rw-r--r-- | src/Notepad/Presentation/Core/IPresenterRegistry.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Notepad/Presentation/Core/IPresenterRegistry.cs b/src/Notepad/Presentation/Core/IPresenterRegistry.cs new file mode 100644 index 0000000..9117489 --- /dev/null +++ b/src/Notepad/Presentation/Core/IPresenterRegistry.cs @@ -0,0 +1,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>();
+ }
+ }
+}
\ No newline at end of file |
