Files
Umbraco-CMS/src/Umbraco.Abstractions/Hosting/IHostingEnvironment.cs

31 lines
937 B
C#
Raw Normal View History

namespace Umbraco.Core.Hosting
{
public interface IHostingEnvironment
{
string SiteName { get; }
string ApplicationId { get; }
string ApplicationPhysicalPath { get; }
string LocalTempPath { get; }
2019-11-20 15:21:09 +01:00
string ApplicationVirtualPath { get; }
int CurrentDomainId { get; }
2019-11-20 15:21:09 +01:00
bool IsDebugMode { get; }
2019-12-04 14:03:39 +01:00
/// <summary>
/// Gets a value indicating whether Umbraco is hosted.
/// </summary>
2019-11-20 15:21:09 +01:00
bool IsHosted { get; }
string MapPath(string path);
2019-12-04 14:03:39 +01:00
string ToAbsolute(string virtualPath, string root);
/// <summary>
/// Terminates the current application. The application restarts the next time a request is received for it.
/// </summary>
void LazyRestartApplication();
void RegisterObject(IRegisteredObject registeredObject);
void UnregisterObject(IRegisteredObject registeredObject);
}
}