示例#1
0
        // Use this for initialization
        void Start()
        {
            var container = new QFrameworkContainer();

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

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