C# (CSharp) CK.Core Пространство имен

Пространства имен

CK.Core.Impl
CK.Core.Tests

Классы

Имя Описание
ActivityLogGroupConclusion Describes a conclusion emitted by a IActivityLoggerClientBase.
ActivityMonitor Concrete implementation of IActivityMonitor.
ActivityMonitor.DependentToken
ActivityMonitor.Group Groups are bound to an ActivityMonitor and are linked together from the current one to the very first one (a kind of stack).
ActivityMonitor.SourceFilter Manages source filtering.
ActivityMonitorBridge A IActivityMonitorClient that relays what happens in a monitor to another monitor. In Net55, automatically supports logs crossing Application Domains. See ActivityMonitorBridgeTarget.
ActivityMonitorBridgeTarget This class used with ActivityMonitorBridge, enables IActivityMonitor to relay logs. Each activity monitor exposes such a bridge target on its output thanks to IActivityMonitorOutput.BridgeTarget.
ActivityMonitorClient
ActivityMonitorConsoleClient Displays the activity to the console.
ActivityMonitorErrorCounter Count fatal, error or warn that occurred. It can also automatically adds a conclusion to closed groups that summarizes the number of fatals, errors and warnings.
ActivityMonitorErrorCounter.State Encapsulates error information. The ToString method displays the conclusion in a default text format.
ActivityMonitorExtension Provides extension methods for IActivityMonitor and other types from the Activity monitor framework.
ActivityMonitorExtension.DependentSender Offers dependent token creation and launching.
ActivityMonitorGroupData Data required by IActivityMonitor.UnfilteredOpenGroup.
ActivityMonitorGroupSender
ActivityMonitorLineSender
ActivityMonitorLogData Data required by IActivityMonitor.UnfilteredLog. This is also the base class for ActivityMonitorGroupData.
ActivityMonitorPathCatcher The "Path Catcher" captures the current path of the opened groups and the last, current, line and exposes it thanks to a read only list of PathElement (the DynamicPath property), plus two other specific paths, the LastErrorPath and the LastWarnOrErrorPath.
ActivityMonitorPathCatcher.PathElement Element of the DynamicPath, LastErrorPath, or LastWarnOrErrorPath.
ActivityMonitorSenderExtension Provides OpenXXX and XXX (Trace, Info,...Fatal) extension methods for IActivityMonitor.
ActivityMonitorSimpleCollector Simple collector of log entries which level is greater or equal to MinimalFilter. Its Capacity defaults to 50 (no more than Capacity entries are kept). Used by the CollectEntries extension method.
ActivityMonitorSimpleCollector.Entry Element of the Entries.
ActivityMonitorTextHelperClient Base class for IActivityMonitorClient that tracks groups and level changes in order to ease text-based renderer.
ActivityMonitorTextWriterClient Formats the activity and pushes piece of texts to an Action{T} where T is a string.
CKBinaryReader Specializes BinaryReader to expose helpers.
CKBinaryWriter Specializes BinaryWriter to expose helpers.
CKException
CKException.SerialData
CKExceptionData
CriticalErrorCollector This collector keeps Capacity Errors (and no more). It raises OnErrorFromBackgroundThreads event on each Add. It is totally thread-safe and guaranties (as long as its Capacity is big enough) that no error can be lost (even errors raised while dispatching the event are themselves collected) and that errors are dispatched in sequence.

This class is typically used as a static property or field by any object that must handle unexpected errors. (It can also be used per-instance if it makes sense.)

CriticalErrorCollector.Error Encapsulates error information CriticalErrorCollector.Added by external code or raised by a CriticalErrorCollector.OnErrorFromBackgroundThreads event itself.
CriticalErrorCollector.ErrorEventArgs Event argument of CriticalErrorCollector.OnErrorFromBackgroundThreads.
DateTimeStampExtension Exposes extension methods on DateTimeStamp.
FileUtil Helper functions related to file system.
JSONVisitor
JSONVisitor.Parent Describes a parent object: it is the name of a property and its index or the index in a array.
LocalSenderExtension
LogFilter
LogFilterMatcherExtension Supports LogFilter and LogLevelFilter extension methods.
SimpleServiceContainer Service container (that is a IServiceProvider) subordinated to an optional base IServiceProvider that acts as a fallback if the service is not found at this level. Service creation may be deferred thanks to callback registration and an optional remove callback can be registered with each entry.
SimpleServiceContainer.ServiceEntry
SimpleTypeFinder Very simple default implementation of the ISimpleTypeFinder: it can be used as a base class. Static Default and WeakDefault are available.
SourceLogFilter Immutable encapsulation of the two source filters: this enables overriding or per source file filtering.
StringMatcher This class supports "Match and Forward" pattern. On a failed match, the SetError method sets the ErrorMessage. On a successful match, the StartIndex is updated by a call to Forward so that the Head is positioned after the match (and any existing error is cleared).
SystemActivityMonitor This ActivityMonitor logs errors in a directory (if the static RootLogPath property is not null) and raises OnError events. Its main goal is to be internally used by the Monitor framework but can be used as a "normal" monitor (if you believe it is a good idea). The easiest way to configure it is to set an application settings with the key "CK.Core.SystemActivityMonitor.RootLogPath" and the root path for logs as the value.
SystemActivityMonitor.LowLevelErrorEventArgs Defines the event argument of SystemActivityMonitor.OnError.
SystemActivityMonitor.SysClient A client that can be added and removed and is available as a singleton. Its MinimalFilter is set to Release ensuring that errors are always monitored. Fatals and Errors are stored in RootLogPath/CriticalErrors.
SystemActivityMonitor.SysLockedClient A SysClient that can not be removed and is available as a singleton registered in every new SystemActivityMonitor.
TemporaryFile Small helper to automatically delete a temporary file. It is mainly a secure wrapper around GetTempFileName that creates a uniquely named, zero-byte temporary file on disk and returns the full path of that file: the P:Path property exposes it.
Util.Hash Provides methods to combine hash values: use StartValue and then chain calls to the M:Combine methods. Based on Daniel J. Bernstein algorithm (http://cr.yp.to/cdb/cdb.txt).