Closed jkvargas closed 3 years ago
With this commit you can define a way on how grapevine will generate objects for you, follows an example using ninject:
IKernel kernel = new StandardKernel(new INinjectModule[] { new Whatever() });
Grapevine.Server.RestServer.CustomCreateInstance = (Type p) => { return kernel.Get(p); };
No new features are being added to Grapevine 4. Grapevine 5 supports dependency injection, and can be found here: https://github.com/scottoffen/grapevine
With this commit you can define a way on how grapevine will generate objects for you, follows an example using ninject:
IKernel kernel = new StandardKernel(new INinjectModule[] { new Whatever() });
Grapevine.Server.RestServer.CustomCreateInstance = (Type p) => { return kernel.Get(p); };