// Use this for initialization void Start() { var container = new QFrameworkContainer(); container.RegisterInstance(new A()); container.Inject(this); container.Resolve <A>().HelloWorld(); }
public override void Loaded(QFrameworkContainer container) { base.Loaded(container); Repository = container.Resolve <IRepository>(); WorkspaceService = container.Resolve <WorkspaceService>(); }
public override void Loaded(QFrameworkContainer container) { base.Loaded(container); TypesInfo = InvertGraphEditor.TypesContainer.ResolveAll <GraphTypeInfo>().ToArray(); Repository = container.Resolve <IRepository>(); }
public override void Loaded(QFrameworkContainer container) { base.Loaded(container); ToolbarUI = container.Resolve <ToolbarUI>(); Signal <IToolbarQuery>(_ => _.QueryToolbarCommands(ToolbarUI)); }