public VsEventProvider( ISourceControlService sourceControlService) { _vsEnvironment = Microsoft.VisualStudio.Shell.Package.GetGlobalService(typeof(SDTE)) as DTE2; _sourceControlService = sourceControlService; _solutionEvents = _vsEnvironment.Events.SolutionEvents; _solutionEvents.AfterClosing += OnSolutionClosing; _solutionEvents.Opened += OnSolutionOpened; }
public ReleaseNotesGenerator(IOctopusToTeamcityMappingStrategy octopusToTeamcityMappingStrategy, IOctopusDeployService octopusDeployService, IOctopusDeploySettings octopusDeploySettings, IBuildIdToTagNameStratergy buildIdToTagNameStratergy, ISourceControlService sourceControlService, IBugTrackingService bugTrackingService) { _octopusToTeamcityMappingStrategy = octopusToTeamcityMappingStrategy; _octopusDeployService = octopusDeployService; _octopusDeploySettings = octopusDeploySettings; _buildIdToTagNameStratergy = buildIdToTagNameStratergy; _sourceControlService = sourceControlService; _bugTrackingService = bugTrackingService; }
public ReleaseNotesGenerator(IOctopusToTeamcityMappingStrategy octopusToTeamcityMappingStrategy, IOctopusDeployService octopusDeployService, IOctopusDeploySettings octopusDeploySettings, IBuildIdToTagNameStratergy buildIdToTagNameStratergy, ISourceControlService sourceControlService, IBugTrackingService bugTrackingService) { _octopusToTeamcityMappingStrategy = octopusToTeamcityMappingStrategy; _octopusDeployService = octopusDeployService; _octopusDeploySettings = octopusDeploySettings; _buildIdToTagNameStratergy = buildIdToTagNameStratergy; _sourceControlService = sourceControlService; _bugTrackingService = bugTrackingService; }
/// <summary> /// Constructor</summary> /// <param name="sourceControlService">Source control service</param> /// <param name="resources">Resources under source control</param> public CheckInForm(ISourceControlService sourceControlService, IEnumerable<IResource> resources) { InitializeComponent(); m_resources = new List<IResource>(resources); foreach (IResource controlled in resources) m_checkBox.Items.Add(controlled.Uri.OriginalString, true); m_sourceControlService = sourceControlService; m_submitButton.Enabled = false; }
/// <summary> /// Constructor</summary> /// <param name="sourceControlService">Source control service</param> /// <param name="resources">Resources under source control</param> public CheckInForm(ISourceControlService sourceControlService, IEnumerable <IResource> resources) { InitializeComponent(); m_resources = new List <IResource>(resources); foreach (IResource controlled in resources) { m_checkBox.Items.Add(controlled.Uri.OriginalString, true); } m_sourceControlService = sourceControlService; m_submitButton.Enabled = false; }
/// <summary> /// Constructor</summary> /// <param name="sourceControlService">Source control service used</param> /// <param name="modified">Enumeration of modified URIs</param> /// <param name="notInDepot">Enumeration of URIs not in depot</param> public ReconcileForm(ISourceControlService sourceControlService, IEnumerable<Uri> modified, IEnumerable<Uri> notInDepot) { InitializeComponent(); m_sourceControlService = sourceControlService; m_modified = new List<Uri>(modified); m_notInDepot = new List<Uri>(notInDepot); foreach (Uri uri in modified) localModifiedListBox.Items.Add(uri.LocalPath, true); foreach (Uri uri in notInDepot) localfilesNotInDepotListBox.Items.Add(uri.LocalPath, true); }
public void Load(IServices services) { if (services == null) { throw new ArgumentNullException("services"); } this.services = services; this.sourceControlService = (ISourceControlService) new SourceControlService((IServiceProvider)services); this.issueTrackingService = (IIssueTrackingService) new IssueTrackingService((IServiceProvider)services); this.services.AddService(typeof(ISourceControlService), (object)this.sourceControlService); this.services.AddService(typeof(IIssueTrackingService), (object)this.issueTrackingService); this.sourceControlService.RegisterProvider("TeamFoundationVersionControl", new SourceControlProviderCreatorCallback(this.LoadTeamFoundationServiceSourceControlProviderCallback)); this.issueTrackingService.RegisterProvider("TeamFoundationVersionControl", new IssueTrackingProviderCreatorCallback(this.LoadTeamFoundationServiceIssueTrackingProviderCallback)); this.sourceControlService.SetProperty("TeamFoundationVersionControl", "Description", (object)"Team Foundation Server"); this.issueTrackingService.SetProperty("TeamFoundationVersionControl", "Description", (object)"Team Foundation Server"); }
/// <summary> /// Constructor</summary> /// <param name="sourceControlService">Source control service used</param> /// <param name="modified">Enumeration of modified URIs</param> /// <param name="notInDepot">Enumeration of URIs not in depot</param> public ReconcileForm(ISourceControlService sourceControlService, IEnumerable <Uri> modified, IEnumerable <Uri> notInDepot) { InitializeComponent(); m_sourceControlService = sourceControlService; m_modified = new List <Uri>(modified); m_notInDepot = new List <Uri>(notInDepot); foreach (Uri uri in modified) { localModifiedListBox.Items.Add(uri.LocalPath, true); } foreach (Uri uri in notInDepot) { localfilesNotInDepotListBox.Items.Add(uri.LocalPath, true); } }
protected SourceControlProviderBase(IServiceProvider serviceProvider) { this.serviceProvider = serviceProvider; this.sourceControlService = (ISourceControlService)serviceProvider.GetService(typeof(ISourceControlService)); }