1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 |
#region Using Statements
using System;
using Modules.Common.View;
using StructureMap;
using StructureMap.Graph;
#endregion
namespace Modules.Common
{
public class PresenterScanner : ITypeScanner
{
#region ITypeScanner Members
public void Process(Type type, PluginGraph graph)
{
Type interfaceType = type.FindInterfaceThatCloses(typeof (IPresenter<>));
if (interfaceType != null)
{
graph.AddType(interfaceType, type);
}
}
#endregion
}
} |