Esempio n. 1
0
        private void HostConfigurations(object sender, ConfigurationsEventArgs e)
        {
            var project = _contexts[e.ContextId];
            project.ApplyConfigurations(e);

            if (_connect != null)
                if (_contexts.Values.All(p => p.Configurated))
                    _connect.TrySetResult(true);
        }
Esempio n. 2
0
        private void HostConfigurations(object sender, ConfigurationsEventArgs e)
        {
            var proj = _state.Workspace.Projects.SingleOrDefault(p => p.Id == e.ContextId);

            if (proj == null)
            {
                return;
            }

            // TODO: Keep commands
            UpdateNode <ProjectEntry>(proj.RelativePath, (p, c) => p.WithConfigurations(e.ProjectName, e.Configurations));
            _compilations.AddOrUpdate(proj.Id, id => ProjectCompilation.Create(proj.Name, proj.Id), (id, old) => old.InvalidateConfiguration());
        }
Esempio n. 3
0
        private void HostConfigurations(object sender, ConfigurationsEventArgs e)
        {
            var project = _contexts[e.ContextId];

            project.ApplyConfigurations(e);

            if (_connect != null)
            {
                if (_contexts.Values.All(p => p.Configurated))
                {
                    _connect.TrySetResult(true);
                }
            }
        }
Esempio n. 4
0
 internal void ApplyConfigurations(ConfigurationsEventArgs e)
 {
     _name         = e.ProjectName;
     _configurated = true;
 }
Esempio n. 5
0
        private void HostConfigurations(object sender, ConfigurationsEventArgs e)
        {
            var project = _contexts[e.ContextId];

            project.ApplyConfigurations(e);
        }
Esempio n. 6
0
 private void OnConfigurations(ConfigurationsEventArgs e)
 {
     var c = Configurations;
     if (c != null)
         c(this, e);
 }