File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -92,17 +92,17 @@ If your dll name does not match the name of the assembly, or if your service has
9292 // Custom service dll, additional dependency, using dll names
9393 var serviceInstance = await worker .CreateBackgroundServiceAsync <MyService >(
9494 options => options .AddAssemblies (" MyService.dll" , " MyServiceDependency.dll" )
95- ):
95+ );
9696
9797 // Default service dll, additional dependency with dll deduced from assembly name of provided type
98- var serviceInstance = await worker .CreateBackgroundServiceAsync <MyService >(
98+ var serviceInstance2 = await worker .CreateBackgroundServiceAsync <MyService >(
9999 options => options
100100 .AddConventionalAssemblyOfService ()
101101 .AddAssemblyOf <TypeOfMyServiceDependency >()
102102 );
103103
104104 // In addition to default service dll, add HttpClient as Dependency (built-in dependency definition / helper)
105- var serviceInstance = await worker .CreateBackgroundServiceAsync <MyService >(
105+ var serviceInstance3 = await worker .CreateBackgroundServiceAsync <MyService >(
106106 options => options
107107 .AddConventionalAssemblyOfService ()
108108 .AddHttpClient ()
You can’t perform that action at this time.
0 commit comments