Skip to content

Commit ef8039f

Browse files
authored
Update README.md
Fixed a typo, and made code "compilable"
1 parent 3e30400 commit ef8039f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)