IHostEnvironment Arabirim
Tanım
Bir uygulamanın üzerinde çalıştığı barındırma ortamı hakkında bilgi sağlar.Provides information about the hosting environment an application is running in.
public interface class IHostEnvironment
public interface IHostEnvironment
type IHostEnvironment = interface
Public Interface IHostEnvironment
Özellikler
| ApplicationName |
Uygulamanın adını alır veya ayarlar.Gets or sets the name of the application. Bu özellik ana bilgisayar tarafından uygulama giriş noktasını içeren derlemeye otomatik olarak ayarlanır.This property is automatically set by the host to the assembly containing the application entry point. |
| ContentRootFileProvider |
Bir işaret alır veya ayarlar IFileProvider ContentRootPath .Gets or sets an IFileProvider pointing at ContentRootPath. |
| ContentRootPath |
Uygulama içerik dosyalarını içeren dizinin mutlak yolunu alır veya ayarlar.Gets or sets the absolute path to the directory that contains the application content files. |
| EnvironmentName |
Ortamın adını alır veya ayarlar.Gets or sets the name of the environment. Konak, bu özelliği yapılandırmada belirtilen "ortam" anahtarının değerine otomatik olarak ayarlar.The host automatically sets this property to the value of the "environment" key as specified in configuration. |
Uzantı Metotları
| IsDevelopment(IHostEnvironment) |
Geçerli konak ortamı adının olup olmadığını denetler Development .Checks if the current host environment name is Development. Bu API, kitaplıklarda kullanılmamalıdır, Ayrıntılar için bkz. açıklamalar.This API should not be used in libraries, see remarks for details. |
| IsEnvironment(IHostEnvironment, String) |
Geçerli ana bilgisayar ortam adını belirtilen değerle karşılaştırır.Compares the current host environment name against the specified value. Kitaplık yazarları bu API 'yi kullanmaktan kaçınmalıdır, Ayrıntılar için bkz. açıklamalar.Library authors should avoid using this API, see remarks for details. |
| IsProduction(IHostEnvironment) |
Geçerli konak ortamı adının olup olmadığını denetler Production .Checks if the current host environment name is Production. Bu API, kitaplıklarda kullanılmamalıdır, Ayrıntılar için bkz. açıklamalar.This API should not be used in libraries, see remarks for details. |
| IsStaging(IHostEnvironment) |
Geçerli konak ortamı adının olup olmadığını denetler Staging .Checks if the current host environment name is Staging. Bu API, kitaplıklarda kullanılmamalıdır, Ayrıntılar için bkz. açıklamalar.This API should not be used in libraries, see remarks for details. |