You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current PolicyWrap configuration syntax in PolicyWrapSyntax.cs and PolicyWrapSyntaxAsync.cs pre-dates the introduction of interfaces: the parameters are the concrete classes Policy or Policy<TResult>.
Typing the parameters instead from the interfaces:
offer more flexibility - wraps could (in principle) use custom user ISyncPolicy implementations
[EDITed to add] allow users to wrap policies where they had chosen to express the policies to be wrapped (when they defined them earlier), as interfaces. At the moment this is not possible, because the syntax only accepts the concrete classes.
The text was updated successfully, but these errors were encountered:
reisenberger
changed the title
Refine PolicyWrap configuration syntax to take parameters is interfaces
Refine PolicyWrap configuration syntax to take parameters as interfaces
Aug 19, 2017
The current
PolicyWrap
configuration syntax in PolicyWrapSyntax.cs and PolicyWrapSyntaxAsync.cs pre-dates the introduction of interfaces: the parameters are the concrete classesPolicy
orPolicy<TResult>
.Typing the parameters instead from the interfaces:
ISyncPolicy
ISyncPolicy<TResult>
IAsyncPolicy
IAsyncPolicy<TResult>
would:
ISyncPolicy
implementationsThe text was updated successfully, but these errors were encountered: