Skip to content

Commit

Permalink
Update register-type.mdx
Browse files Browse the repository at this point in the history
Fixed some typos
  • Loading branch information
FogyX authored Sep 13, 2023
1 parent 9d753be commit c91ea24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/docs/registering/register-type.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ class ClassB
public ClassB(IInputPort inputPort) { /* ... */ }
}

class ClassB
class ClassC
{
public ClassB(ServiceA serviceA) { /* ... */ }
public ClassC(ServiceA serviceA) { /* ... */ }
}
```

Expand Down Expand Up @@ -201,7 +201,7 @@ builder.RegisterInstance<IInputPort>(serviceA);
builder.RegisterInstance(serviceA)
.As<IServiceA, IInputPort>();

builder.RegisterInstance()
builder.RegisterInstance(serviceA)
.AsImplementedInterfaces();
```

Expand Down

0 comments on commit c91ea24

Please sign in to comment.