/// <summary> /// Fires the IntegrationCompleted event. /// </summary> /// <param name="request">The integration request.</param> /// <param name="projectName">The name of the project.</param> /// <param name="status">The outcome of the integration.</param> protected virtual void FireIntegrationCompleted(IntegrationRequest request, string projectName, IntegrationStatus status) { if (IntegrationCompleted != null) { IntegrationCompletedEventArgs args = new IntegrationCompletedEventArgs(request, projectName, status); IntegrationCompleted(this, args); } }
/// <summary> /// Handles the IntegrationCompleted event of the server control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="ThoughtWorks.CruiseControl.Remote.Events.IntegrationCompletedEventArgs"/> instance containing the event data.</param> private void server_IntegrationCompleted(object sender, IntegrationCompletedEventArgs e) { lock (updateLock) { if (requests.Contains(e.ProjectName)) { requests.Remove(e.ProjectName); } } }