We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I would have asked in the discord, but the invite link is expired.
I would just like to know if it's possible to handle generics for installers (This compiles but I can't attach as a component)?
public class RequestInstaller<TRequest, TResponse> : MonoInstaller { public override void InstallBindings() { Container.Bind<IRequestSystem<TRequest, TResponse>>().To<RequestSystem<TRequest, TResponse>>().AsSingle(); } }
https://github.com/modesttree/Zenject?tab=readme-ov-file#runtime-parameters-for-installers covers params but not generics, I'm looking to make a generic HTTP request / response class.
public interface IRequestSystem<TRequest, TResponse> { Task<TResponse> RequestAsync(Endpoints endpoint, TRequest requestData); } public class RequestSystem<TRequest, TResponse> : IRequestSystem<TRequest, TResponse> ...
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I would have asked in the discord, but the invite link is expired.
I would just like to know if it's possible to handle generics for installers (This compiles but I can't attach as a component)?
https://github.com/modesttree/Zenject?tab=readme-ov-file#runtime-parameters-for-installers covers params but not generics, I'm looking to make a generic HTTP request / response class.
The text was updated successfully, but these errors were encountered: