public static NodeConfig <TGraphNode> AddGraph <TGraphType, TGraphNode>(this IQFrameworkContainer container, string name) where TGraphType : IGraphData where TGraphNode : GenericNode, new() { container.Register <IGraphData, TGraphType>(name); return(AddNode <TGraphNode>(container, name)); }
public PackageManagerApp() { // 注册好 自己的实例 Container.RegisterInstance(Container); // 配置命令的执行 TypeEventSystem.Register <IEditorStrangeMVCCommand>(OnCommandExecute); InstalledPackageVersions.Reload(); // 注册好 model var model = new PackageManagerModel { Repositories = PackageInfosRequestCache.Get().PackageRepositories }; Container.RegisterInstance(model); Container.Register <IPackageManagerServer, PackageManagerServer>(); }