Coree.NETStandard
  • API
Show / Hide Table of Contents
  • Coree.NETStandard.Abstractions.DependencySingleton
    • DependencySingleton<T>
    • IDependencySingleton
  • Coree.NETStandard.Abstractions.FluentBase
    • FluentBase
    • IFluentBase
  • Coree.NETStandard.Abstractions.InitializationService
    • InitializationDependentServices
    • InitializationService
  • Coree.NETStandard.Abstractions.ServiceFactory
    • ServiceFactory<T>
  • Coree.NETStandard.Abstractions.ServiceFactoryEx
    • ServiceFactoryEx<T>
    • ServiceFactoryEx<T, K, R, S, U, V, W, X, Y, Z>
    • ServiceFactoryEx<T, K>
    • ServiceFactoryEx<T, K, R>
    • ServiceFactoryEx<T, K, R, S>
    • ServiceFactoryEx<T, K, R, S, U>
    • ServiceFactoryEx<T, K, R, S, U, V>
    • ServiceFactoryEx<T, K, R, S, U, V, W>
    • ServiceFactoryEx<T, K, R, S, U, V, W, X>
    • ServiceFactoryEx<T, K, R, S, U, V, W, X, Y>
  • Coree.NETStandard.Classes.AsyncEventCollection
    • AsyncEventCollection<T>
    • AsyncEventCollection<T>.CustomEventDelegate
  • Coree.NETStandard.Classes.CommonDistinguishedNameBuilder
    • CommonDistinguishedNameBuilder
    • DistinguishedName
  • Coree.NETStandard.Classes.Criteria
    • CriteriaComparisonMethod
    • CriteriaEnumerableExtensions
    • CriteriaExpressionBuilder
    • CriteriaItem<TValue>
    • CriteriaItems
    • CriteriaOperator
    • CriteriaQueryableExtensions
  • Coree.NETStandard.Classes.HttpRequestService
    • ContentComposer
    • HttpRequestHeadersExtensions
    • HttpRequestService
    • HttpRequestServiceHandler
    • HttpRequestServiceUriExtensions
    • ServiceCollectionExtensions
    • TransactionRecord
  • Coree.NETStandard.Classes.Scheduler
    • Scheduler
    • Scheduler.TickerEventArgs
    • Scheduler.TickerEventDelegate
  • Coree.NETStandard.Classes.ThreadSafeCollection
    • ThreadSafeCollection<T>
  • Coree.NETStandard.Classes.ThreadSafeValue
    • ThreadSafeValue<T>
  • Coree.NETStandard.Classes.TimeOfDay
    • TimeOfDay
  • Coree.NETStandard.Extensions.Collections.Enumerable
    • CollectionsEnumerableExtensions
  • Coree.NETStandard.Extensions.Collections.List
    • CollectionsListExtensions
  • Coree.NETStandard.Extensions.Conversions.ByteArray
    • ConversionsByteArrayExtensions
  • Coree.NETStandard.Extensions.Conversions.HostApplicationBuilder
    • ConversionsHostApplicationBuilderExtensions
  • Coree.NETStandard.Extensions.Conversions.String
    • ConversionsStringExtensions
    • Encodings
  • Coree.NETStandard.Extensions.Conversions.Stringbuilder
    • ConversionsStringbuilderExtension
  • Coree.NETStandard.Extensions.Enums
    • EnumExtensions
  • Coree.NETStandard.Extensions.Http.HttpHeader
    • HttpHeadersExtensions
  • Coree.NETStandard.Extensions.Primitives.Bool
    • PrimitivesBoolExtensions
  • Coree.NETStandard.Extensions.Reflection.ServiceProvider
    • ReflectionServiceProviderExtensions
  • Coree.NETStandard.Extensions.ServiceCollection
    • ServiceCollectionExtensions
  • Coree.NETStandard.Extensions.Threading.CancellationToken
    • ThreadingCancellationTokenExtensions
  • Coree.NETStandard.Extensions.Utilities
    • DateTimeExtensions
  • Coree.NETStandard.Extensions.Validations.String
    • ValidationsStringExtensions
  • Coree.NETStandard.HostedServicesCollection
    • HostedServicesCollectionConfig<T>
    • IHostedServicesCollectionConfig<T>
    • ServiceCollectionExtensions
    • ServiceProviderExtensions
  • Coree.NETStandard.Serilog
    • ConditionalLevelSink
    • CustomTheme
    • LoggerSinkConfigurationExtensions
    • OutputTemplates
    • ServiceCollectionExtensions
    • SourceContextShortEnricher
  • Coree.NETStandard.Services.DebugManagement
    • DebugService
    • IDebugService
  • Coree.NETStandard.Services.DirectoryOperationsManagement
    • DirectoryOperationsService
    • IDirectoryOperationsService
  • Coree.NETStandard.Services.FileManagement
    • FileService
    • IFileService
  • Coree.NETStandard.Services.FileOperationsManagement
    • FileOperationsService
    • FileOperationsService.FileSystemEntry
    • FileOperationsService.FileSystemInformation
    • FileOperationsService.VerifiedCopyStatus
    • IFileOperationsService
  • Coree.NETStandard.Services.HashManagement
    • HashService
    • IHashService
  • Coree.NETStandard.Services.NetworkManagement
    • INetworkService
    • NetworkService
    • NetworkService.IpAdressInformation
    • NetworkService.NetworkInterfaceDetail
  • Coree.NETStandard.Services.ProcessManagement
    • IProcessService
    • ProcessRunExitCodeState
    • ProcessRunResult
    • ProcessService
  • Coree.NETStandard.Services.RuntimeInsightsManagement
    • IRuntimeInsightsService
    • RuntimeInsightsService
  • Coree.NETStandard.SpectreConsole
    • CommandAppExtensions
    • HostBuilderExtensions
    • ServiceCollectionExtensions
    • SpectreConsoleHostedService
    • SpectreConsoleHostedService.ExitCode
    • SpectreConsoleTypeRegistrar
    • SpectreConsoleTypeResolver
  • Coree.NETStandard.UnderConstruction
    • DbContextExtensions
    • HttpClientStatic
    • HttpClientStatic.HttpClientResponse
    • HttpClientStatic.XRate
    • HttpClientStatic.XRateGroup
    • HttpClientStatic.XRateItem
    • IScheduleProvider
    • IntervalScheduleProvider
    • LimitedHistory<T>
    • ScheduleCombiner
    • Scheduler
    • Scheduler.TickerEventArgs
    • Scheduler.TickerEventDelegate
    • Scheduler2
    • Scheduler2.TickerEventArgs
    • Scheduler2.TickerEventDelegate
    • Scheduler3
    • Scheduler3.TickerEventArgs
    • Scheduler3.TickerEventDelegate
    • SqlliteMemoryContext
    • SqlliteMemoryContext.UserDataDto
    • TimedEntry<T>
    • Timing
    • Timing.Ticker
    • Timing.Ticker.TickerEventArgs
    • Timing.TickerSync
    • WeekDayAtScheduleProvider
  • Coree.NETStandard.Utilities
    • EventSubscription
    • MainContext

Class RuntimeInsightsService

Manages and provides access to runtime and system insights.

Inheritance
object
ServiceFactoryEx<RuntimeInsightsService, object, object, object, object, object, object, object, object, object>
ServiceFactoryEx<RuntimeInsightsService>
RuntimeInsightsService
Implements
IDisposable
IRuntimeInsightsService
Inherited Members
ServiceFactoryEx<RuntimeInsightsService, object, object, object, object, object, object, object, object, object>.CreateServiceFactory(Action<IHostBuilder>)
ServiceFactoryEx<RuntimeInsightsService, object, object, object, object, object, object, object, object, object>.CreateServiceFactory(Action<IServiceCollection>)
ServiceFactoryEx<RuntimeInsightsService, object, object, object, object, object, object, object, object, object>.CreateServiceFactory(Action<IServiceCollection>, Action<ILoggingBuilder>, Action<IHostBuilder>)
ServiceFactoryEx<RuntimeInsightsService, object, object, object, object, object, object, object, object, object>.CreateServiceFactory()
ServiceFactoryEx<RuntimeInsightsService, object, object, object, object, object, object, object, object, object>.CreateServiceFactory(LogLevel)
ServiceFactoryEx<RuntimeInsightsService, object, object, object, object, object, object, object, object, object>.Dispose()
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Coree.NETStandard.Services.RuntimeInsightsManagement
Assembly: Coree.NETStandard.dll
Syntax
public class RuntimeInsightsService : ServiceFactoryEx<RuntimeInsightsService>, IDisposable, IRuntimeInsightsService

Constructors

| Edit this page View Source

RuntimeInsightsService(ILogger<RuntimeInsightsService>?)

Initializes a new instance of the RuntimeInsightsService class.

Declaration
public RuntimeInsightsService(ILogger<RuntimeInsightsService>? logger = null)
Parameters
Type Name Description
ILogger<RuntimeInsightsService> logger

Optional logger instance for logging purposes.

Remarks

The logger provided here can be used with the field within the class. Be mindful that the logger may be null in scenarios where it's not explicitly provided.

Properties

| Edit this page View Source

CallingAssemblyName

Gets the name of the calling assembly.

Declaration
public string? CallingAssemblyName { get; }
Property Value
Type Description
string
| Edit this page View Source

CurrentDirectory

Gets the current working directory.

Declaration
public string? CurrentDirectory { get; }
Property Value
Type Description
string
| Edit this page View Source

CurrentProcessMainModuleFilename

Gets the main module filename of the current process.

Declaration
public string? CurrentProcessMainModuleFilename { get; }
Property Value
Type Description
string
| Edit this page View Source

CurrentProcessMainModuleName

Gets the main module name of the current process.

Declaration
public string? CurrentProcessMainModuleName { get; }
Property Value
Type Description
string
| Edit this page View Source

EntryAssemblyName

Gets the name of the entry assembly.

Declaration
public string? EntryAssemblyName { get; }
Property Value
Type Description
string
| Edit this page View Source

EnvironmentCommandLine

Gets the command line used to start the environment.

Declaration
public string? EnvironmentCommandLine { get; }
Property Value
Type Description
string
| Edit this page View Source

ExecutingAssemblyName

Gets the name of the executing assembly.

Declaration
public string? ExecutingAssemblyName { get; }
Property Value
Type Description
string
| Edit this page View Source

OSArchitecture

Gets the OS architecture.

Declaration
public string? OSArchitecture { get; }
Property Value
Type Description
string
| Edit this page View Source

ProcessArchitecture

Gets the process architecture.

Declaration
public string? ProcessArchitecture { get; }
Property Value
Type Description
string
| Edit this page View Source

Username

Gets the username of the process owner.

Declaration
public string? Username { get; }
Property Value
Type Description
string

Methods

| Edit this page View Source

IsDebugBuild()

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.

| Edit this page View Source

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.

| Edit this page View Source

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.

Implements

IDisposable
IRuntimeInsightsService
  • Edit this page
  • View Source
In this article
Back to top