Main class of the Innosys framework. This class is internal, not accessible from outside the Innosys assembly.
Inheritance: IFramework
 public SystemBundle(Framework framework)
     : base(new BundleData(0,
         typeof(SystemBundle).Assembly.CodeBase.Replace("file:///",""))
     
     , framework)
 {
     Initialize();
 }
Exemple #2
0
 internal Bundle(BundleData bundleData, Framework framework)
 {
     this.id = bundleData.Id;
     this.storage = new DirectoryInfo(bundleData.Location);
     this.framework = framework;
     this.bundleData = bundleData;
     this.location = bundleData.Location;
     this.symbolicName = Path.GetFileNameWithoutExtension(bundleData.Location);
     this.state = BundleState.Installed;
     SetDynamicInfo();
 }
        public ServiceRegistration(BundleContext context, string[] classes,
            object serviceObject, Dictionary<string, object> properties)
        {
            this.context = context;
            this.bundle = context.Bundle;
            this.framework = context.Framework;
            this.classes = classes;
            this.serviceObject = serviceObject;
            this.serviceId = framework.GetNextServiceId();
            this.referance = new ServiceReference(this, bundle);
            this.contextsUsing = null;
            this.factory = serviceObject as IServiceFactory;
            available = true;
            InitializeProperties(properties);

            framework.ServiceRegistry.PublishService(context, this);

            EventManager.OnServiceChanged(new ServiceEventArgs(ServiceState.Registered, referance));
        }
        private Framework framework; // The framework instanse

        #endregion Fields

        #region Constructors

        public PluginManage()
        {
            framework = new Framework();
            GetPluginDirs();
            PluginManage.osgi = this;
        }