Skip to content

Commit 4592207

Browse files
committed
Fixed service resolution after refactoring.
1 parent 0edac7e commit 4592207

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/KubeOps/Operator/Builder/OperatorBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ internal IOperatorBuilder AddOperatorBase(OperatorSettings settings)
202202
Services.AddScoped<IKubernetesClient, KubernetesClient>();
203203
Services.AddScoped<IEventManager, EventManager>();
204204

205-
Services.AddScoped(typeof(ResourceCache<>));
206-
Services.AddScoped(typeof(ResourceWatcher<>));
205+
Services.AddScoped(typeof(IResourceCache<>), typeof(ResourceCache<>));
206+
Services.AddScoped(typeof(IResourceWatcher<>), typeof(ResourceWatcher<>));
207207
Services.AddScoped(typeof(IEventQueue<>), typeof(EventQueue<>));
208208

209209
// Support all the metrics

0 commit comments

Comments
 (0)