Class RuntimeInsightsService
Represents a service for RuntimeInsightsService methods with optional dependency injection support. This service implements the IRuntimeInsightsService interface, providing methods reflection of the running system and environment. This service inherits from DependencySingleton<PInvokeService>, which supports both dependency injection (DI) and non-DI scenarios
Inherited Members
Namespace: Coree.NETStandard.Services.RuntimeInsights
Assembly: Coree.NETStandard.dll
Syntax
public class RuntimeInsightsService : DependencySingleton<RuntimeInsightsService>, IRuntimeInsightsService, IDependencySingleton
Constructors
| <<<<<<< HEAD <<<<<<< .merge_file_a18368 Edit this page View Source ======= Edit this page View Source >>>>>>> .merge_file_a07976 ======= Edit this page View Source >>>>>>> releaseRuntimeInsightsService(ILogger<RuntimeInsightsService>, IConfiguration)
Initializes a new instance of the untimeInsightsService class with the specified logger and configuration.
Declaration
public RuntimeInsightsService(ILogger<RuntimeInsightsService> logger, IConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ILogger<RuntimeInsightsService> | logger | The logger instance for logging messages. |
IConfiguration | configuration | The configuration instance for accessing application settings. |
Methods
| <<<<<<< HEAD <<<<<<< .merge_file_a18368 Edit this page View Source ======= Edit this page View Source >>>>>>> .merge_file_a07976 ======= Edit this page View Source >>>>>>> releaseIsDebugBuild()
Checks if the current build is a debug build.
Declaration
public bool? IsDebugBuild()
Returns
Type | Description |
---|---|
bool? | True if the current build is a debug build; otherwise, false. If the operation is canceled or an exception occurs, returns null. |
IsDebugBuildAsync(CancellationToken)
Checks if the current build is a debug build.
Declaration
public Task<bool?> IsDebugBuildAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | The cancellation token to cancel the operation. |
Returns
Type | Description |
---|---|
Task<bool?> | True if the current build is a debug build; otherwise, false. If the operation is canceled or an exception occurs, returns null. |
IsDevelopmentBuild()
Checks if the current build is a debug build.
Declaration
public static bool IsDevelopmentBuild()
Returns
Type | Description |
---|---|
bool | True if the current build is a debug build; otherwise, false. |