Exemplo n.º 1
0
 public ProjectSyncProcessor(ISoftwareFactoryEventDispatcher eventDispatcher,
                             IXmlFileCache xmlFileCache,
                             IChanges changeManager,
                             IProject project)
 {
     _changeManager     = changeManager;
     _xmlFileCache      = xmlFileCache;
     _sfEventDispatcher = eventDispatcher;
     Project            = project;
     _syncProjectFile   = UpdateFileOnHDD;
 }
Exemplo n.º 2
0
 public FrameworkProjectSyncProcessor(
     ISoftwareFactoryEventDispatcher softwareFactoryEventDispatcher,
     IXmlFileCache xmlFileCache,
     IChanges changeManager,
     IProject project)
 {
     _softwareFactoryEventDispatcher = softwareFactoryEventDispatcher;
     _xmlFileCache    = xmlFileCache;
     _changeManager   = changeManager;
     _project         = project;
     _syncProjectFile = UpdateFileOnHdd;
 }
 public ApplicationSyncProcessor(ISoftwareFactoryEventDispatcher eventDispatcher, IXmlFileCache fileCache, IChanges changeManager)
 {
     Order            = 90;
     _changeManager   = changeManager;
     _fileCache       = fileCache;
     _actions         = new Dictionary <string, List <SoftwareFactoryEvent> >();
     _eventDispatcher = eventDispatcher;
     //Subscribe to all the project change events
     _eventDispatcher.Subscribe(SoftwareFactoryEvents.AddProjectItemEvent, Handle);
     _eventDispatcher.Subscribe(SoftwareFactoryEvents.RemoveProjectItemEvent, Handle);
     _eventDispatcher.Subscribe(SoftwareFactoryEvents.AddTargetEvent, Handle);
     _eventDispatcher.Subscribe(SoftwareFactoryEvents.AddTaskEvent, Handle);
     _eventDispatcher.Subscribe(SoftwareFactoryEvents.ChangeProjectItemTypeEvent, Handle);
 }
Exemplo n.º 4
0
 public FrameworkProjectSyncProcessor(
     string projectPath,
     ISoftwareFactoryEventDispatcher sfEventDispatcher,
     IXmlFileCache xmlFileCache,
     IChanges changeManager,
     IOutputTarget project)
 {
     _projectPath       = projectPath;
     _sfEventDispatcher = sfEventDispatcher;
     _xmlFileCache      = xmlFileCache;
     _changeManager     = changeManager;
     _project           = project;
     _syncProjectFile   = UpdateFileOnHdd;
 }
Exemplo n.º 5
0
        public ApplicationSyncProcessor(ISoftwareFactoryEventDispatcher sfEventDispatcher, IXmlFileCache fileCache, IChanges changeManager)
        {
            _changeManager     = changeManager;
            _fileCache         = fileCache;
            _actions           = new Dictionary <string, List <SoftwareFactoryEvent> >();
            _sfEventDispatcher = sfEventDispatcher;
            //Subscribe to all the project change events
            _sfEventDispatcher.Subscribe(SoftwareFactoryEvents.FileAddedEvent, Handle);
            _sfEventDispatcher.Subscribe(SoftwareFactoryEvents.FileRemovedEvent, Handle);
            _sfEventDispatcher.Subscribe(SoftwareFactoryEvents.AddTargetEvent, Handle);
            _sfEventDispatcher.Subscribe(SoftwareFactoryEvents.AddTaskEvent, Handle);
            _sfEventDispatcher.Subscribe(SoftwareFactoryEvents.ChangeProjectItemTypeEvent, Handle);

            _sfEventDispatcher.Subscribe(CsProjectEvents.AddImport, Handle);
            _sfEventDispatcher.Subscribe(CsProjectEvents.AddCompileDependsOn, Handle);
            _sfEventDispatcher.Subscribe(CsProjectEvents.AddBeforeBuild, Handle);
            _sfEventDispatcher.Subscribe(CsProjectEvents.AddContentFile, Handle);
        }