ServerSnapshotChangedEvent.cs :  » Build-Systems » CruiseControl.NET » ThoughtWorks » CruiseControl » CCTrayLib » Monitoring » C# / CSharp Open Source

Home
C# / CSharp Open Source
1.2.6.4 mono .net core
2.2.6.4 mono core
3.Aspect Oriented Frameworks
4.Bloggers
5.Build Systems
6.Business Application
7.Charting Reporting Tools
8.Chat Servers
9.Code Coverage Tools
10.Content Management Systems CMS
11.CRM ERP
12.Database
13.Development
14.Email
15.Forum
16.Game
17.GIS
18.GUI
19.IDEs
20.Installers Generators
21.Inversion of Control Dependency Injection
22.Issue Tracking
23.Logging Tools
24.Message
25.Mobile
26.Network Clients
27.Network Servers
28.Office
29.PDF
30.Persistence Frameworks
31.Portals
32.Profilers
33.Project Management
34.RSS RDF
35.Rule Engines
36.Script
37.Search Engines
38.Sound Audio
39.Source Control
40.SQL Clients
41.Template Engines
42.Testing
43.UML
44.Web Frameworks
45.Web Service
46.Web Testing
47.Wiki Engines
48.Windows Presentation Foundation
49.Workflows
50.XML Parsers
C# / C Sharp
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source » Build Systems » CruiseControl.NET 
CruiseControl.NET » ThoughtWorks » CruiseControl » CCTrayLib » Monitoring » ServerSnapshotChangedEvent.cs
using System;
using System.Collections.Generic;
using System.Text;
using ThoughtWorks.CruiseControl.CCTrayLib.Configuration;

namespace ThoughtWorks.CruiseControl.CCTrayLib.Monitoring{
    /// <summary>
    /// The arguments for when a server snapshot has changed.
    /// </summary>
    public class ServerSnapshotChangedEventArgs
    {
        #region Private fields
        private List<string> addedProjects = new List<string>();
        private List<string> deletedProjects = new List<string>();
        #endregion

        #region Constructors
        /// <summary>
        /// Initialises the args.
        /// </summary>
        /// <param name="addedProjects"></param>
        /// <param name="deletedProjects"></param>
        public ServerSnapshotChangedEventArgs(string server,
            BuildServer configuration,
            IEnumerable<string> addedProjects,
            IEnumerable<string> deletedProjects)
        {
            this.Server = server;
            this.Configuration = configuration;
            this.addedProjects.AddRange(addedProjects ?? new string[0]);
            this.deletedProjects.AddRange(deletedProjects ?? new string[0]);
        }
        #endregion
        
        #region Public properties
        #region Server
        /// <summary>
        /// The server that has changed.
        /// </summary>
        public string Server { get; private set; }
        #endregion

        #region Configuration
        /// <summary>
        /// The server configuration.
        /// </summary>
        public BuildServer Configuration { get; private set; }
        #endregion

        #region AddedProjects
        /// <summary>
        /// The projects that have been added to the server.
        /// </summary>
        public IList<string> AddedProjects
        {
            get { return addedProjects; }
        }
        #endregion

        #region DeletedProjects
        /// <summary>
        /// The projects that have been deleted from the server.
        /// </summary>
        public IList<string> DeletedProjects
        {
            get { return deletedProjects; }
        }
        #endregion
        #endregion
    }

    /// <summary>
    /// The delegate for handling a server snapshot changed event.
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="args"></param>
    public delegate void ServerSnapshotChangedEventHandler(object sender, ServerSnapshotChangedEventArgs args);
}
www.java2v.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.