Ejemplo n.º 1
0
 public UpdatesNotifier(Lifetime lifetime, UpdatesManager updatesManager, SimpleExtensionManager extensionManager)
 {
     // If we're installed as part of the extension manager, we don't need to worry about updates
     if (!extensionManager.IsInstalled())
     {
         Initialise(lifetime, updatesManager);
     }
 }
Ejemplo n.º 2
0
        public SettingsLoader(Lifetime lifetime, SimpleExtensionManager extensionManager,
                              UserInjectedSettingsLayers userInjectedSettingsLayers, IThreading threading,
                              IFileSystemTracker filetracker, FileSettingsStorageBehavior behavior)
        {
            // Check to see if we've been loaded as an extension - so we're either loaded
            // as a plugin on the command line (debugging) or we're in an environment that
            // doesn't support the default extension provider (e.g. VS2008)
            if (extensionManager.IsInstalled())
                return;

            var files = GetSettingsFiles();
            foreach (var file in files)
            {
                MountSettingsFile(lifetime, extensionManager.ExtensionId, file,
                    extensionManager.SettingsMountPointId, threading, filetracker,
                    behavior, userInjectedSettingsLayers);
            }
        }
Ejemplo n.º 3
0
        public SettingsLoader(Lifetime lifetime, SimpleExtensionManager extensionManager,
                              UserInjectedSettingsLayers userInjectedSettingsLayers, IThreading threading,
                              IFileSystemTracker filetracker, FileSettingsStorageBehavior behavior)
        {
            // Check to see if we've been loaded as an extension - so we're either loaded
            // as a plugin on the command line (debugging) or we're in an environment that
            // doesn't support the default extension provider (e.g. VS2008)
            if (extensionManager.IsInstalled())
            {
                return;
            }

            var files = GetSettingsFiles();

            foreach (var file in files)
            {
                MountSettingsFile(lifetime, extensionManager.ExtensionId, file,
                                  extensionManager.SettingsMountPointId, threading, filetracker,
                                  behavior, userInjectedSettingsLayers);
            }
        }
Ejemplo n.º 4
0
 public UpdatesNotifier(Lifetime lifetime, UpdatesManager updatesManager, SimpleExtensionManager extensionManager)
 {
     // If we're installed as part of the extension manager, we don't need to worry about updates
     if (!extensionManager.IsInstalled())
         Initialise(lifetime, updatesManager);
 }
Ejemplo n.º 5
0
 public IEnumerable <FileSystemPath> GetAnnotationsFiles(AssemblyNameInfo assemblyName,
                                                         FileSystemPath assemblyLocation)
 {
     return(extensionManager.IsInstalled() ? EmptyList <FileSystemPath> .InstanceList : myAnnotations[assemblyName.Name]);
 }