2019-11-20 13:38:41 +01:00
|
|
|
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; }
|
|
|
|
|
|
2019-12-18 11:16:43 +01:00
|
|
|
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);
|
2019-12-05 07:53:40 +01:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Terminates the current application. The application restarts the next time a request is received for it.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void LazyRestartApplication();
|
2020-01-08 09:01:58 +01:00
|
|
|
|
|
|
|
|
void RegisterObject(IRegisteredObject registeredObject);
|
|
|
|
|
void UnregisterObject(IRegisteredObject registeredObject);
|
2019-11-20 13:38:41 +01:00
|
|
|
}
|
|
|
|
|
}
|