@@ -107,12 +107,25 @@ private string FormatResourceName(Type resourceType, IResourceNameFormatter reso
107
107
/// <param name="assembly">The assembly to search for resources in.</param>
108
108
public ServiceDiscoveryFacade AddAssemblyServices ( Assembly assembly )
109
109
{
110
+ RegisterServiceImplementations ( assembly , typeof ( IResourceService < > ) ) ;
110
111
RegisterServiceImplementations ( assembly , typeof ( IResourceService < , > ) ) ;
112
+
113
+ RegisterServiceImplementations ( assembly , typeof ( ICreateService < > ) ) ;
111
114
RegisterServiceImplementations ( assembly , typeof ( ICreateService < , > ) ) ;
115
+
116
+ RegisterServiceImplementations ( assembly , typeof ( IGetAllService < > ) ) ;
112
117
RegisterServiceImplementations ( assembly , typeof ( IGetAllService < , > ) ) ;
118
+
119
+ RegisterServiceImplementations ( assembly , typeof ( IGetByIdService < > ) ) ;
113
120
RegisterServiceImplementations ( assembly , typeof ( IGetByIdService < , > ) ) ;
121
+
122
+ RegisterServiceImplementations ( assembly , typeof ( IGetRelationshipService < > ) ) ;
114
123
RegisterServiceImplementations ( assembly , typeof ( IGetRelationshipService < , > ) ) ;
124
+
125
+ RegisterServiceImplementations ( assembly , typeof ( IUpdateService < > ) ) ;
115
126
RegisterServiceImplementations ( assembly , typeof ( IUpdateService < , > ) ) ;
127
+
128
+ RegisterServiceImplementations ( assembly , typeof ( IDeleteService < > ) ) ;
116
129
RegisterServiceImplementations ( assembly , typeof ( IDeleteService < , > ) ) ;
117
130
118
131
return this ;
@@ -122,8 +135,19 @@ public ServiceDiscoveryFacade AddAssemblyServices(Assembly assembly)
122
135
/// Add <see cref="IEntityRepository{T, TId}"/> implementations to container.
123
136
/// </summary>
124
137
/// <param name="assembly">The assembly to search for resources in.</param>
125
- public ServiceDiscoveryFacade AddAssemblyRepositories ( Assembly assembly )
126
- => RegisterServiceImplementations ( assembly , typeof ( IEntityRepository < , > ) ) ;
138
+ public ServiceDiscoveryFacade AddAssemblyRepositories ( Assembly assembly )
139
+ {
140
+ RegisterServiceImplementations ( assembly , typeof ( IEntityRepository < > ) ) ;
141
+ RegisterServiceImplementations ( assembly , typeof ( IEntityRepository < , > ) ) ;
142
+
143
+ RegisterServiceImplementations ( assembly , typeof ( IEntityWriteRepository < > ) ) ;
144
+ RegisterServiceImplementations ( assembly , typeof ( IEntityWriteRepository < , > ) ) ;
145
+
146
+ RegisterServiceImplementations ( assembly , typeof ( IEntityReadRepository < > ) ) ;
147
+ RegisterServiceImplementations ( assembly , typeof ( IEntityReadRepository < , > ) ) ;
148
+
149
+ return this ;
150
+ }
127
151
128
152
private ServiceDiscoveryFacade RegisterServiceImplementations ( Assembly assembly , Type interfaceType )
129
153
{
0 commit comments