Class ObservableLogEntries
Exposes a read-only, observable view of LogEntry values captured by FastMoq logger interception.
Implements
Inherited Members
Namespace: FastMoq.Models
Assembly: FastMoq.Core.dll
Syntax
public class ObservableLogEntries : IReadOnlyCollection<LogEntry>, IEnumerable<LogEntry>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
Constructors
ObservableLogEntries()
Initializes an empty observable log entry collection.
Declaration
public ObservableLogEntries()
Properties
Count
Gets the number of captured log entries.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
Items
Gets the captured log entries as a read-only observable collection.
Declaration
public IReadOnlyCollection<LogEntry> Items { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyCollection<LogEntry> |
Methods
GetEnumerator()
Returns an enumerator that iterates through the captured log entries.
Declaration
public IEnumerator<LogEntry> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<LogEntry> | An enumerator over the captured log entries. |
Events
CollectionChanged
Occurs when the captured log entry collection changes.
Declaration
public event NotifyCollectionChangedEventHandler? CollectionChanged
Event Type
| Type | Description |
|---|---|
| NotifyCollectionChangedEventHandler |
PropertyChanged
Occurs when one of the collection properties, such as Count, changes.
Declaration
public event PropertyChangedEventHandler? PropertyChanged
Event Type
| Type | Description |
|---|---|
| PropertyChangedEventHandler |