Exemplo n.º 1
0
 private InstallationInfo(InstallReason installReason, [NotNull] FileSystemPath pluginDirectory,
                          [NotNull] ICollection <FileSystemPath> existingFiles, [NotNull] Version existingVersion)
 {
     InstallReason   = installReason;
     PluginDirectory = pluginDirectory;
     ExistingFiles   = existingFiles;
     ExistingVersion = existingVersion;
 }
            private InstallationInfo(InstallReason installReason, [NotNull] FileSystemPath pluginDirectory,
                                     [NotNull] ICollection <FileSystemPath> existingFiles, [NotNull] Version existingVersion)
            {
                var logger = Logger.GetLogger <InstallationInfo>();

                if (!pluginDirectory.IsAbsolute && ShouldInstallPlugin)
                {
                    logger.Error($"pluginDirectory ${pluginDirectory} Is Not Absolute ${installReason}, ${existingVersion}, ${existingFiles.Count}");
                }
                else
                {
                    logger.Info($"pluginDirectory ${pluginDirectory} ${installReason}, ${existingVersion}, ${existingFiles.Count}");
                }

                InstallReason   = installReason;
                PluginDirectory = pluginDirectory;
                ExistingFiles   = existingFiles;
                ExistingVersion = existingVersion;
            }