Interface IRuntimeInsightsService
Defines a contract for services that provide runtime and system insights.
Namespace: Coree.NETStandard.Services.RuntimeInsightsService
Assembly: Coree.NETStandard.dll
Syntax
public interface IRuntimeInsightsService
Properties
| Edit this page View SourceCallingAssemblyName
Gets the name of the calling assembly.
Declaration
string? CallingAssemblyName { get; }
Property Value
Type | Description |
---|---|
string |
CurrentDirectory
Gets the current working directory.
Declaration
string? CurrentDirectory { get; }
Property Value
Type | Description |
---|---|
string |
CurrentProcessMainModuleFilename
Gets the main module filename of the current process.
Declaration
string? CurrentProcessMainModuleFilename { get; }
Property Value
Type | Description |
---|---|
string |
CurrentProcessMainModuleName
Gets the main module name of the current process.
Declaration
string? CurrentProcessMainModuleName { get; }
Property Value
Type | Description |
---|---|
string |
EntryAssemblyName
Gets the name of the entry assembly.
Declaration
string? EntryAssemblyName { get; }
Property Value
Type | Description |
---|---|
string |
EnvironmentCommandLine
Gets the command line used to start the environment.
Declaration
string? EnvironmentCommandLine { get; }
Property Value
Type | Description |
---|---|
string |
ExecutingAssemblyName
Gets the name of the executing assembly.
Declaration
string? ExecutingAssemblyName { get; }
Property Value
Type | Description |
---|---|
string |
OSArchitecture
Gets the OS architecture.
Declaration
string? OSArchitecture { get; }
Property Value
Type | Description |
---|---|
string |
ProcessArchitecture
Gets the process architecture.
Declaration
string? ProcessArchitecture { get; }
Property Value
Type | Description |
---|---|
string |
Username
Gets the username of the process owner.
Declaration
string? Username { get; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceIsDebugBuild()
Checks if the current build is a debug build.
Declaration
bool? IsDebugBuild()
Returns
Type | Description |
---|---|
bool? | True if the current build is a debug build; otherwise, false. Returns null if the determination cannot be made. |
IsDebugBuildAsync(CancellationToken)
Checks if the current build is a debug build.
Declaration
Task<bool?> IsDebugBuildAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | The cancellation token to cancel the operation. |
Returns
Type | Description |
---|---|
Task<bool?> | A task representing the asynchronous operation. The task result contains true if the current build is a debug build; otherwise, false. If the operation is canceled or an exception occurs, returns null. |