예제 #1
0
        /// <summary>
        /// Initialization of the package; this method is called right after the package is sited, so this is the place
        /// where you can put all the initialization code that rely on services provided by VisualStudio.
        /// </summary>
        protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true;
            await base.InitializeAsync(cancellationToken, progress);

            SettingsService.Initialize(this);
            PublishService.Initialize(this);
            await Logger.InitializeAsync(this);

            await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);

            await InitializeDTEAsync(cancellationToken);
        }
예제 #2
0
 public static void Initialize(AsyncPackage asyncPackage)
 {
     Instance = new PublishService(asyncPackage);
 }