Class LogBatcher<TItem>.ItemBatch
Provides data about the batched items, e.g. error count and a list of the first X errored Ids... Items are batched by their CLR Type
Inheritance
System.Object
LogBatcher<TItem>.ItemBatch
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Azos.Log
Assembly: Azos.dll
Syntax
public class ItemBatch
Constructors
ItemBatch(TItem)
Declaration
public ItemBatch(TItem firstItem)
Parameters
Type | Name | Description |
---|---|---|
TItem | firstItem |
Fields
First
Declaration
public readonly TItem First
Field Value
Type | Description |
---|---|
TItem |
Properties
Count
Declaration
public int Count { get; protected set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Type
Declaration
public Type Type { get; }
Property Value
Type | Description |
---|---|
System.Type |
Methods
Add(TItem)
Override to add item-specific details, such as ids of error-causing entities. This method is called under lock and has to be efficient and not create much data, for example: only add the first 20 ids to the batch and discard the rest etc.
Declaration
protected virtual void Add(TItem item)
Parameters
Type | Name | Description |
---|---|---|
TItem | item |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()