Skip to content

Commit

Permalink
Merge pull request #176 from aydjay/typedParameter
Browse files Browse the repository at this point in the history
Refer to TypedParameter extension method
  • Loading branch information
tillig committed Sep 29, 2023
2 parents d110cae + 6c4ad4e commit 0af0bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/register/parameters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Or you could pass a parameter to a reflection component registration:
// Using a TYPED parameter:
builder.RegisterType<ConfigReader>()
.As<IConfigReader>()
.WithParameter(new TypedParameter(typeof(string), "sectionName"));
.WithParameter(TypedParameter.From("sectionName"));

// Using a RESOLVED parameter:
builder.RegisterType<ConfigReader>()
Expand Down

0 comments on commit 0af0bb7

Please sign in to comment.