Skip to content

Commit

Permalink
Merge pull request #168 from TonyValenti/master
Browse files Browse the repository at this point in the history
Update registration.rst
  • Loading branch information
tillig committed Mar 8, 2023
2 parents 1470ac4 + eef0b07 commit 885cf00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/register/registration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ For example, consider a class with these properties:

public class MyComponent
{
public required ILogger Logger { get; set; }
public required ILogger Logger { protected get; init; }

public required IConfigReader ConfigReader { get; set; }
public required IConfigReader ConfigReader { protected get; init; }
}

You can register and use this class as you could if it had a constructor:
Expand Down

0 comments on commit 885cf00

Please sign in to comment.