Skip to content
Discussion options

You must be logged in to vote
  1. In your version it makes no sense for RT part: it's literally saying that IHas<T> is an interface that requires to have implementation a getter of type T, what does RT (runtime) have to do with anything?
  2. Has<M, TRAIT> and Has<M, ENV TRAIT> not only get the value, but also wrap it in M.
  3. Getting a specific dependency when the function requires multiple looks like this

Is that so? Get extension method returns just TDependency. Your example can't be compiled:

public static Eff<RT, RESULT> Execute<RT>(REQUEST request)
        where RT :
        struct,
        IHas<IHttpClientFactory>,
        IHas<LogQueue> =>
        from rt in runtime<RT>() // gets rt of type RT from Eff<RT, RT>, so t…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@flachman03
Comment options

@aloslider
Comment options

Answer selected by flachman03
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
None yet
3 participants