Skip to content

Commit

Permalink
Merge pull request #550 from FogyX/patch-1
Browse files Browse the repository at this point in the history
Update register-type.mdx
  • Loading branch information
hadashiA authored Oct 8, 2023
2 parents 9d753be + c91ea24 commit 4230588
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

1 comment on commit 4230588

@vercel
Copy link

@vercel vercel bot commented on 4230588 Oct 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.