Closed hdzs closed 4 years ago
Here are your instructions: // First, create the builder var builder = new StyletIoCBuilder();
// Configure the builder builder.Bind().To();
// The container is then built for you
// Now you can use this to resolve instances of services var vehicle = ioc.Get();
But I did not find the relevant interface(ioc.get???), is it because of the version problem?Below is my screenshot:
I'm not sure where you got those instructions from, but the line you're missing is:
var ioc = builder.BuildContainer();
The bootstrapper does this for you, and sets the container property on Bootstrapper<T>
container
Bootstrapper<T>
Here are your instructions: // First, create the builder var builder = new StyletIoCBuilder();
// Configure the builder builder.Bind().To();
// The container is then built for you
// Now you can use this to resolve instances of services var vehicle = ioc.Get();
But I did not find the relevant interface(ioc.get???), is it because of the version problem?Below is my screenshot:![image](https://user-images.githubusercontent.com/39402049/81536353-f9e67500-939d-11ea-8b11-adc722ab0ba0.png)