-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Priority: 1Severity 1: MinorStatus 0: DiscussionNeeds further evaluation of requirements and prioritization.Needs further evaluation of requirements and prioritization.Status 2: ScheduledPlanned for an upcoming release.Planned for an upcoming release.Type: ImprovementImproves the functionality or interface of an existing feature.Improves the functionality or interface of an existing feature.
Milestone
Description
In “Framework Design Patterns”, under 5.1 “General Member Design Guidelines”, the following recommendation should be followed:
- DO NOT use default parameters, for any parameter type other than CancellationToken, on interface methods or virtual methods on classes.
This is inconsistent with how OnTopic is written. The recommended resolution is to instead implement the following:
Default parameters can be provided for interface methods via extension methods.
This relies on the method resolution logic of the C# compiler.
At minimum, this should be implemented on classes intended for dependency injection. For classes not intended for dependency injection, this may not be appropriate. See considerations below regarding using
scope.
Metadata
Metadata
Assignees
Labels
Priority: 1Severity 1: MinorStatus 0: DiscussionNeeds further evaluation of requirements and prioritization.Needs further evaluation of requirements and prioritization.Status 2: ScheduledPlanned for an upcoming release.Planned for an upcoming release.Type: ImprovementImproves the functionality or interface of an existing feature.Improves the functionality or interface of an existing feature.