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 RSEnv(IIDESession ideSession, FeedBaGVersionUtil versionUtil)
 {
     IDESession   = ideSession;
     _versionUtil = versionUtil;
 }
Пример #3
0
 public void SetUp()
 {
     _sut = new FeedBaGVersionUtil();
 }
Пример #4
0
 public IDEEventLogFileManager(FeedBaGVersionUtil versionUtil)
     : base(Path.Combine(EventLogsPath, versionUtil.GetVariant().ToString()))
 {
 }