コード例 #1
0
        public OldEventLogAutoResubmitter([NotNull] IMessageBus messageBus,
                                          // Dependency on EventLogger is necessary to make sure it has already been
                                          // created and is subscribed to the message bus.
                                          // ReSharper disable once UnusedParameter.Local
                                          [NotNull] EventLogger eventLogger,
                                          [NotNull] ILogger logger,
                                          [NotNull] FeedBaGVersionUtil versionUtil)
        {
            var pathInRoaming = Path.Combine(
                IDEEventLogFileManager.AppDataPath,
                IDEEventLogFileManager.ProjectName,
                "KaVE.VS.FeedbackGenerator",
                versionUtil.GetVariant().ToString());


            var pathWithDefaultVariant = Path.Combine(
                IDEEventLogFileManager.LocalAppDataPath,
                IDEEventLogFileManager.ProjectName,
                "KaVE.VS.FeedbackGenerator",
                "Default");

            var paths = new List <string> {
                pathInRoaming
            };

            if (versionUtil.GetVariant() == Variant.Release)
            {
                paths.Add(pathWithDefaultVariant);
            }

            Task.Factory.StartNew(() => Execute(paths, messageBus, logger));
        }
コード例 #2
0
        public void GetVariant()
        {
            var actual = _sut.GetVariant();

            Assert.AreEqual(Variant.Experimental, actual);
        }
コード例 #3
0
 public IDEEventLogFileManager(FeedBaGVersionUtil versionUtil)
     : base(Path.Combine(EventLogsPath, versionUtil.GetVariant().ToString()))
 {
 }
コード例 #4
0
        public void GetVariant()
        {
            var actual = _sut.GetVariant();

            Assert.AreEqual(Variant.Development, actual);
        }