Skip to content
Discussion options

You must be logged in to vote

Hi @shirleywesley, yes there is.

Within the base Invokerthe following code will look to load a generic TInvoker from the underlying IServiceProvider where configured, so that represents our runtime replacement opportunity:

protected static TInvoker GetCurrentInstance<TInvoker>(bool throwExceptionOnNull = true) where TInvoker : Invoker => ExecutionContext.GetService<TInvoker>(throwExceptionOnNull)!;

The DataInvoker, DataSvcInvoker and ManagerInvoker all implement code similar to:

    public class ManagerInvoker : BusinessInvokerBase
    {
        /// <summary>
        /// Gets the current configured instance (see <see cref="ExecutionContext.ServiceProvider"/>).
        /// </summary>
        

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by shirleywesley
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
2 participants