// Use this for initialization
        void Start()
        {
            var container = new QFrameworkContainer();

            container.RegisterInstance(new A());
            container.Inject(this);

            container.Resolve <A>().HelloWorld();
        }
Example #2
0
 public override void Loaded(QFrameworkContainer container)
 {
     base.Loaded(container);
     Repository       = container.Resolve <IRepository>();
     WorkspaceService = container.Resolve <WorkspaceService>();
 }
Example #3
0
 public override void Loaded(QFrameworkContainer container)
 {
     base.Loaded(container);
     TypesInfo  = InvertGraphEditor.TypesContainer.ResolveAll <GraphTypeInfo>().ToArray();
     Repository = container.Resolve <IRepository>();
 }
Example #4
0
 public override void Loaded(QFrameworkContainer container)
 {
     base.Loaded(container);
     ToolbarUI = container.Resolve <ToolbarUI>();
     Signal <IToolbarQuery>(_ => _.QueryToolbarCommands(ToolbarUI));
 }