|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Microsoft.TemplateEngine.Abstractions.Mount;
namespace Microsoft.TemplateEngine.Abstractions
{
[Obsolete("See obsolete messages on methods/properties for details on what to use as replacement.")]
public interface ISettingsLoader
{
[Obsolete("Use IEngineEnvironmentSettings.Components")]
IComponentManager Components { get; }
[Obsolete("Use IEngineEnvironmentSettings directly.")]
IEngineEnvironmentSettings EnvironmentSettings { get; }
[Obsolete("Retrieving list of mount points is not possible anymore, to load mount point use Microsoft.TemplateEngine.Utils.EngineEnvironmentSettingsExtensions.TryGetMountPoint extension.")]
IEnumerable<object> MountPoints { get; }
[Obsolete("Adding mount points is not possible anymore, to load mount point use Microsoft.TemplateEngine.Utils.EngineEnvironmentSettingsExtensions.TryGetMountPoint extension.")]
void AddMountPoint(IMountPoint mountPoint);
[Obsolete("Probing paths need to be handled by ComponentManager itself.")]
void AddProbingPath(string probeIn);
[Obsolete("Use new TemplatePackagesManager().GetTemplatesAsync.")]
void GetTemplates(HashSet<ITemplateInfo> templates);
[Obsolete("Use Microsoft.TemplateEngine.Utils.TemplateInfoExtensions.LoadTemplate extension.")]
ITemplate LoadTemplate(ITemplateInfo info, string baselineName);
[Obsolete("No need to call Save anymore.")]
void Save();
[Obsolete("Use Microsoft.TemplateEngine.Utils.EngineEnvironmentSettingsExtensions.TryGetMountPoint extension and then look for file inside mountpoint.")]
bool TryGetFileFromIdAndPath(Guid mountPointId, string place, out IFile file, out IMountPoint mountPoint);
[Obsolete("Use Microsoft.TemplateEngine.Utils.EngineEnvironmentSettingsExtensions.TryGetMountPoint extension.")]
bool TryGetMountPointFromPlace(string mountPointPlace, out IMountPoint mountPoint);
[Obsolete("Use Microsoft.TemplateEngine.Utils.EngineEnvironmentSettingsExtensions.TryGetMountPoint extension.")]
bool TryGetMountPointInfo(Guid mountPointId, out object info);
[Obsolete("Should be handled by TemplatePackageManager itself.")]
void WriteTemplateCache(IList<ITemplateInfo> templates, string locale);
[Obsolete("Should be handled by TemplatePackageManager itself.")]
void WriteTemplateCache(IList<ITemplateInfo> templates, string locale, bool hasContentChanges);
[Obsolete("Use ITemplateInfo.HostConfigPlace instead.")]
IFile FindBestHostTemplateConfigFile(IFileSystemInfo config);
[Obsolete("IMountPoint is IDisposable now.")]
void ReleaseMountPoint(IMountPoint mountPoint);
[Obsolete("Removing mount points is not possible anymore, to load mount point use Microsoft.TemplateEngine.Utils.EngineEnvironmentSettingsExtensions.TryGetMountPoint extension.")]
void RemoveMountPoints(IEnumerable<Guid> mountPoints);
[Obsolete("Removing mount points is not possible anymore, to load mount point use Microsoft.TemplateEngine.Utils.EngineEnvironmentSettingsExtensions.TryGetMountPoint extension.")]
void RemoveMountPoint(IMountPoint mountPoint);
}
}
|