private void OnSerializingMethod(StreamingContext context) { this.vstsService = GlobalConfiguration.Configuration.DependencyResolver.GetService <IVstsService>(); this.vstsApplicationRegistry = GlobalConfiguration.Configuration.DependencyResolver.GetService <IVstsApplicationRegistry>(); }
/// <summary> /// Initializes a new instance of the <see cref="DialogBase"/> class. /// </summary> /// <param name="vstsService">VSTS accessor.</param> /// <param name="vstsApplicationRegistry">VSTS Application registry accessor.</param> protected DialogBase(IVstsService vstsService, IVstsApplicationRegistry vstsApplicationRegistry) { this.vstsService = vstsService ?? throw new ArgumentNullException(nameof(vstsService)); this.vstsApplicationRegistry = vstsApplicationRegistry ?? throw new ArgumentNullException(nameof(vstsApplicationRegistry)); }
/// <summary> /// Initializes a new instance of the <see cref="ReleasesDialog"/> class. /// </summary> /// <param name="vstsService">VSTS accessor</param> /// <param name="vstsApplicationRegistry">VSTS Application registry accessor.</param> public ReleasesDialog(IVstsService vstsService, IVstsApplicationRegistry vstsApplicationRegistry) : base(vstsService, vstsApplicationRegistry) { }
/// <summary> /// Initializes a new instance of the <see cref="ConnectDialog"/> class. /// </summary> /// <param name="vstsService">VSTS accessor.</param> /// <param name="vstsApplicationRegistry">VSTS Application registry accessor.</param> public ConnectDialog(IVstsService vstsService, IVstsApplicationRegistry vstsApplicationRegistry) : base(vstsService, vstsApplicationRegistry) { }
/// <summary> /// Initializes a new instance of the <see cref="ApprovalsDialog"/> class. /// </summary> /// <param name="vstsService">The <see cref="IVstsService"/>.</param> /// <param name="applicationRegistry">The <see cref="IVstsApplicationRegistry"/>.</param> public ApprovalsDialog(IVstsService vstsService, IVstsApplicationRegistry applicationRegistry) : base(vstsService, applicationRegistry) { }
/// <summary> /// Initializes a new instance of the <see cref="AuthorizeController"/> class. /// </summary> /// <param name="botService">The botService.</param> /// <param name="applicationRegistry">VSTS Application Registry</param> /// <param name="vstsService">The profileService.s</param> public AuthorizeController(IBotService botService, IVstsApplicationRegistry applicationRegistry, IVstsService vstsService) { this.botService = botService ?? throw new ArgumentNullException(nameof(botService)); this.applicationRegistry = applicationRegistry ?? throw new ArgumentNullException(nameof(applicationRegistry)); this.vstsService = vstsService ?? throw new ArgumentNullException(nameof(vstsService)); }