Export (0) Print
Expand All

LogExtentCollection Class

Represents the collection of LogExtent objects associated with a LogStore.

System.Object
  System.IO.Log.LogExtentCollection

Namespace:  System.IO.Log
Assembly:  System.IO.Log (in System.IO.Log.dll)

public sealed class LogExtentCollection : IEnumerable<LogExtent>, 
	IEnumerable

The LogExtentCollection type exposes the following members.

  NameDescription
Public propertyCountGets the number of log extents in the collection.
Public propertyFreeCountGets the number of free LogExtent instances in the collection, that is, the number of LogExtent instances that do not contain any data.
Top

  NameDescription
Public methodAdd(String)Adds a LogExtent instance to the collection.
Public methodAdd(String, Int64)Creates a new LogExtent with the specified size and adds it to the collection.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetEnumeratorGets an enumerator for the LogExtent instances in this collection. This method cannot be inherited.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodRemove(LogExtent, Boolean)Removes the specified LogExtent instance from the collection.
Public methodRemove(String, Boolean)Removes the LogExtent instance with the specified path from the collection.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public Extension MethodAggregate<LogExtent>(Func<LogExtent, LogExtent, LogExtent>)Overloaded. Applies an accumulator function over a sequence. (Defined by Enumerable.)
Public Extension MethodAggregate<LogExtent>(Func<LogExtent, LogExtent, LogExtent>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAggregate<LogExtent, TAccumulate>(TAccumulate, Func<TAccumulate, LogExtent, TAccumulate>)Overloaded. Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value. (Defined by Enumerable.)
Public Extension MethodAggregate<LogExtent, TAccumulate>(TAccumulate, Func<TAccumulate, LogExtent, TAccumulate>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAggregate<LogExtent, TAccumulate, TResult>(TAccumulate, Func<TAccumulate, LogExtent, TAccumulate>, Func<TAccumulate, TResult>)Overloaded. Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value. (Defined by Enumerable.)
Public Extension MethodAggregate<LogExtent, TAccumulate, TResult>(TAccumulate, Func<TAccumulate, LogExtent, TAccumulate>, Func<TAccumulate, TResult>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAll<LogExtent>(Func<LogExtent, Boolean>)Overloaded. Determines whether all elements of a sequence satisfy a condition. (Defined by Enumerable.)
Public Extension MethodAll<LogExtent>(Func<LogExtent, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAny<LogExtent>()Overloaded. Determines whether a sequence contains any elements. (Defined by Enumerable.)
Public Extension MethodAny<LogExtent>()Overloaded. (Defined by Enumerable.)
Public Extension MethodAny<LogExtent>(Func<LogExtent, Boolean>)Overloaded. Determines whether any element of a sequence satisfies a condition. (Defined by Enumerable.)
Public Extension MethodAny<LogExtent>(Func<LogExtent, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAsEnumerable<LogExtent>()Overloaded. Returns the input typed as IEnumerable<T>. (Defined by Enumerable.)
Public Extension MethodAsEnumerable<LogExtent>()Overloaded. (Defined by Enumerable.)
Public Extension MethodAsParallel()Overloaded. Enables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension MethodAsParallel()Overloaded. (Defined by ParallelEnumerable.)
Public Extension MethodAsParallel<LogExtent>()Overloaded. Enables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension MethodAsParallel<LogExtent>()Overloaded. (Defined by ParallelEnumerable.)
Public Extension MethodAsQueryable()Overloaded. Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension MethodAsQueryable()Overloaded. (Defined by Queryable.)
Public Extension MethodAsQueryable<LogExtent>()Overloaded. Converts a generic IEnumerable<T> to a generic IQueryable<T>. (Defined by Queryable.)
Public Extension MethodAsQueryable<LogExtent>()Overloaded. (Defined by Queryable.)
Public Extension MethodAverage<LogExtent>(Func<LogExtent, Nullable<Decimal>>)Overloaded. Computes the average of a sequence of nullable Decimal values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension MethodAverage<LogExtent>(Func<LogExtent, Nullable<Decimal>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAverage<LogExtent>(Func<LogExtent, Nullable<Double>>)Overloaded. Computes the average of a sequence of nullable Double values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension MethodAverage<LogExtent>(Func<LogExtent, Nullable<Double>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAverage<LogExtent>(Func<LogExtent, Int32>)Overloaded. Computes the average of a sequence of Int32 values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension MethodAverage<LogExtent>(Func<LogExtent, Nullable<Int32>>)Overloaded. Computes the average of a sequence of nullable Int32 values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension MethodAverage<LogExtent>(Func<LogExtent, Int64>)Overloaded. Computes the average of a sequence of Int64 values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension MethodAverage<LogExtent>(Func<LogExtent, Nullable<Int64>>)Overloaded. Computes the average of a sequence of nullable Int64 values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension MethodAverage<LogExtent>(Func<LogExtent, Single>)Overloaded. Computes the average of a sequence of Single values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension MethodAverage<LogExtent>(Func<LogExtent, Nullable<Single>>)Overloaded. Computes the average of a sequence of nullable Single values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension MethodAverage<LogExtent>(Func<LogExtent, Double>)Overloaded. Computes the average of a sequence of Double values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension MethodAverage<LogExtent>(Func<LogExtent, Decimal>)Overloaded. Computes the average of a sequence of Decimal values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension MethodAverage<LogExtent>(Func<LogExtent, Decimal>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAverage<LogExtent>(Func<LogExtent, Double>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAverage<LogExtent>(Func<LogExtent, Int32>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAverage<LogExtent>(Func<LogExtent, Int64>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAverage<LogExtent>(Func<LogExtent, Nullable<Int32>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAverage<LogExtent>(Func<LogExtent, Nullable<Int64>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAverage<LogExtent>(Func<LogExtent, Nullable<Single>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAverage<LogExtent>(Func<LogExtent, Single>)Overloaded. (Defined by Enumerable.)
Public Extension MethodCast<TResult>()Overloaded. Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodCast<TResult>()Overloaded. (Defined by Enumerable.)
Public Extension MethodConcat<LogExtent>(IEnumerable<LogExtent>)Overloaded. Concatenates two sequences. (Defined by Enumerable.)
Public Extension MethodConcat<LogExtent>(IEnumerable<LogExtent>)Overloaded. (Defined by Enumerable.)
Public Extension MethodContains<LogExtent>(LogExtent)Overloaded. Determines whether a sequence contains a specified element by using the default equality comparer. (Defined by Enumerable.)
Public Extension MethodContains<LogExtent>(LogExtent)Overloaded. (Defined by Enumerable.)
Public Extension MethodContains<LogExtent>(LogExtent, IEqualityComparer<LogExtent>)Overloaded. Determines whether a sequence contains a specified element by using a specified IEqualityComparer<T>. (Defined by Enumerable.)
Public Extension MethodContains<LogExtent>(LogExtent, IEqualityComparer<LogExtent>)Overloaded. (Defined by Enumerable.)
Public Extension MethodCount<LogExtent>()Overloaded. Returns the number of elements in a sequence. (Defined by Enumerable.)
Public Extension MethodCount<LogExtent>()Overloaded. (Defined by Enumerable.)
Public Extension MethodCount<LogExtent>(Func<LogExtent, Boolean>)Overloaded. Returns a number that represents how many elements in the specified sequence satisfy a condition. (Defined by Enumerable.)
Public Extension MethodCount<LogExtent>(Func<LogExtent, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodDefaultIfEmpty<LogExtent>()Overloaded. Returns the elements of the specified sequence or the type parameter's default value in a singleton collection if the sequence is empty. (Defined by Enumerable.)
Public Extension MethodDefaultIfEmpty<LogExtent>()Overloaded. (Defined by Enumerable.)
Public Extension MethodDefaultIfEmpty<LogExtent>(LogExtent)Overloaded. Returns the elements of the specified sequence or the specified value in a singleton collection if the sequence is empty. (Defined by Enumerable.)
Public Extension MethodDefaultIfEmpty<LogExtent>(LogExtent)Overloaded. (Defined by Enumerable.)
Public Extension MethodDistinct<LogExtent>()Overloaded. Returns distinct elements from a sequence by using the default equality comparer to compare values. (Defined by Enumerable.)
Public Extension MethodDistinct<LogExtent>()Overloaded. (Defined by Enumerable.)
Public Extension MethodDistinct<LogExtent>(IEqualityComparer<LogExtent>)Overloaded. Returns distinct elements from a sequence by using a specified IEqualityComparer<T> to compare values. (Defined by Enumerable.)
Public Extension MethodDistinct<LogExtent>(IEqualityComparer<LogExtent>)Overloaded. (Defined by Enumerable.)
Public Extension MethodElementAt<LogExtent>(Int32)Overloaded. Returns the element at a specified index in a sequence. (Defined by Enumerable.)
Public Extension MethodElementAt<LogExtent>(Int32)Overloaded. (Defined by Enumerable.)
Public Extension MethodElementAtOrDefault<LogExtent>(Int32)Overloaded. Returns the element at a specified index in a sequence or a default value if the index is out of range. (Defined by Enumerable.)
Public Extension MethodElementAtOrDefault<LogExtent>(Int32)Overloaded. (Defined by Enumerable.)
Public Extension MethodExcept<LogExtent>(IEnumerable<LogExtent>)Overloaded. Produces the set difference of two sequences by using the default equality comparer to compare values. (Defined by Enumerable.)
Public Extension MethodExcept<LogExtent>(IEnumerable<LogExtent>)Overloaded. (Defined by Enumerable.)
Public Extension MethodExcept<LogExtent>(IEnumerable<LogExtent>, IEqualityComparer<LogExtent>)Overloaded. Produces the set difference of two sequences by using the specified IEqualityComparer<T> to compare values. (Defined by Enumerable.)
Public Extension MethodExcept<LogExtent>(IEnumerable<LogExtent>, IEqualityComparer<LogExtent>)Overloaded. (Defined by Enumerable.)
Public Extension MethodFirst<LogExtent>()Overloaded. Returns the first element of a sequence. (Defined by Enumerable.)
Public Extension MethodFirst<LogExtent>()Overloaded. (Defined by Enumerable.)
Public Extension MethodFirst<LogExtent>(Func<LogExtent, Boolean>)Overloaded. Returns the first element in a sequence that satisfies a specified condition. (Defined by Enumerable.)
Public Extension MethodFirst<LogExtent>(Func<LogExtent, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodFirstOrDefault<LogExtent>()Overloaded. Returns the first element of a sequence, or a default value if the sequence contains no elements. (Defined by Enumerable.)
Public Extension MethodFirstOrDefault<LogExtent>()Overloaded. (Defined by Enumerable.)
Public Extension MethodFirstOrDefault<LogExtent>(Func<LogExtent, Boolean>)Overloaded. Returns the first element of the sequence that satisfies a condition or a default value if no such element is found. (Defined by Enumerable.)
Public Extension MethodFirstOrDefault<LogExtent>(Func<LogExtent, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodGroupBy<LogExtent, TKey>(Func<LogExtent, TKey>)Overloaded. Groups the elements of a sequence according to a specified key selector function. (Defined by Enumerable.)
Public Extension MethodGroupBy<LogExtent, TKey>(Func<LogExtent, TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodGroupBy<LogExtent, TKey>(Func<LogExtent, TKey>, IEqualityComparer<TKey>)Overloaded. Groups the elements of a sequence according to a specified key selector function and compares the keys by using a specified comparer. (Defined by Enumerable.)
Public Extension MethodGroupBy<LogExtent, TKey>(Func<LogExtent, TKey>, IEqualityComparer<TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodGroupBy<LogExtent, TKey, TElement>(Func<LogExtent, TKey>, Func<LogExtent, TElement>)Overloaded. Groups the elements of a sequence according to a specified key selector function and projects the elements for each group by using a specified function. (Defined by Enumerable.)
Public Extension MethodGroupBy<LogExtent, TKey, TResult>(Func<LogExtent, TKey>, Func<TKey, IEnumerable<LogExtent>, TResult>)Overloaded. Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. (Defined by Enumerable.)
Public Extension MethodGroupBy<LogExtent, TKey, TElement>(Func<LogExtent, TKey>, Func<LogExtent, TElement>)Overloaded. (Defined by Enumerable.)
Public Extension MethodGroupBy<LogExtent, TKey, TResult>(Func<LogExtent, TKey>, Func<TKey, IEnumerable<LogExtent>, TResult>)Overloaded. (Defined by Enumerable.)
Public Extension MethodGroupBy<LogExtent, TKey, TElement>(Func<LogExtent, TKey>, Func<LogExtent, TElement>, IEqualityComparer<TKey>)Overloaded. Groups the elements of a sequence according to a key selector function. The keys are compared by using a comparer and each group's elements are projected by using a specified function. (Defined by Enumerable.)
Public Extension MethodGroupBy<LogExtent, TKey, TResult>(Func<LogExtent, TKey>, Func<TKey, IEnumerable<LogExtent>, TResult>, IEqualityComparer<TKey>)Overloaded. Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. The keys are compared by using a specified comparer. (Defined by Enumerable.)
Public Extension MethodGroupBy<LogExtent, TKey, TElement>(Func<LogExtent, TKey>, Func<LogExtent, TElement>, IEqualityComparer<TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodGroupBy<LogExtent, TKey, TResult>(Func<LogExtent, TKey>, Func<TKey, IEnumerable<LogExtent>, TResult>, IEqualityComparer<TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodGroupBy<LogExtent, TKey, TElement, TResult>(Func<LogExtent, TKey>, Func<LogExtent, TElement>, Func<TKey, IEnumerable<TElement>, TResult>)Overloaded. Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. The elements of each group are projected by using a specified function. (Defined by Enumerable.)
Public Extension MethodGroupBy<LogExtent, TKey, TElement, TResult>(Func<LogExtent, TKey>, Func<LogExtent, TElement>, Func<TKey, IEnumerable<TElement>, TResult>)Overloaded. (Defined by Enumerable.)
Public Extension MethodGroupBy<LogExtent, TKey, TElement, TResult>(Func<LogExtent, TKey>, Func<LogExtent, TElement>, Func<TKey, IEnumerable<TElement>, TResult>, IEqualityComparer<TKey>)Overloaded. Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. Key values are compared by using a specified comparer, and the elements of each group are projected by using a specified function. (Defined by Enumerable.)
Public Extension MethodGroupBy<LogExtent, TKey, TElement, TResult>(Func<LogExtent, TKey>, Func<LogExtent, TElement>, Func<TKey, IEnumerable<TElement>, TResult>, IEqualityComparer<TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodGroupJoin<LogExtent, TInner, TKey, TResult>(IEnumerable<TInner>, Func<LogExtent, TKey>, Func<TInner, TKey>, Func<LogExtent, IEnumerable<TInner>, TResult>)Overloaded. Correlates the elements of two sequences based on equality of keys and groups the results. The default equality comparer is used to compare keys. (Defined by Enumerable.)
Public Extension MethodGroupJoin<LogExtent, TInner, TKey, TResult>(IEnumerable<TInner>, Func<LogExtent, TKey>, Func<TInner, TKey>, Func<LogExtent, IEnumerable<TInner>, TResult>)Overloaded. (Defined by Enumerable.)
Public Extension MethodGroupJoin<LogExtent, TInner, TKey, TResult>(IEnumerable<TInner>, Func<LogExtent, TKey>, Func<TInner, TKey>, Func<LogExtent, IEnumerable<TInner>, TResult>, IEqualityComparer<TKey>)Overloaded. Correlates the elements of two sequences based on key equality and groups the results. A specified IEqualityComparer<T> is used to compare keys. (Defined by Enumerable.)
Public Extension MethodGroupJoin<LogExtent, TInner, TKey, TResult>(IEnumerable<TInner>, Func<LogExtent, TKey>, Func<TInner, TKey>, Func<LogExtent, IEnumerable<TInner>, TResult>, IEqualityComparer<TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodIntersect<LogExtent>(IEnumerable<LogExtent>)Overloaded. Produces the set intersection of two sequences by using the default equality comparer to compare values. (Defined by Enumerable.)
Public Extension MethodIntersect<LogExtent>(IEnumerable<LogExtent>)Overloaded. (Defined by Enumerable.)
Public Extension MethodIntersect<LogExtent>(IEnumerable<LogExtent>, IEqualityComparer<LogExtent>)Overloaded. Produces the set intersection of two sequences by using the specified IEqualityComparer<T> to compare values. (Defined by Enumerable.)
Public Extension MethodIntersect<LogExtent>(IEnumerable<LogExtent>, IEqualityComparer<LogExtent>)Overloaded. (Defined by Enumerable.)
Public Extension MethodJoin<LogExtent, TInner, TKey, TResult>(IEnumerable<TInner>, Func<LogExtent, TKey>, Func<TInner, TKey>, Func<LogExtent, TInner, TResult>)Overloaded. Correlates the elements of two sequences based on matching keys. The default equality comparer is used to compare keys. (Defined by Enumerable.)
Public Extension MethodJoin<LogExtent, TInner, TKey, TResult>(IEnumerable<TInner>, Func<LogExtent, TKey>, Func<TInner, TKey>, Func<LogExtent, TInner, TResult>)Overloaded. (Defined by Enumerable.)
Public Extension MethodJoin<LogExtent, TInner, TKey, TResult>(IEnumerable<TInner>, Func<LogExtent, TKey>, Func<TInner, TKey>, Func<LogExtent, TInner, TResult>, IEqualityComparer<TKey>)Overloaded. Correlates the elements of two sequences based on matching keys. A specified IEqualityComparer<T> is used to compare keys. (Defined by Enumerable.)
Public Extension MethodJoin<LogExtent, TInner, TKey, TResult>(IEnumerable<TInner>, Func<LogExtent, TKey>, Func<TInner, TKey>, Func<LogExtent, TInner, TResult>, IEqualityComparer<TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodLast<LogExtent>()Overloaded. Returns the last element of a sequence. (Defined by Enumerable.)
Public Extension MethodLast<LogExtent>()Overloaded. (Defined by Enumerable.)
Public Extension MethodLast<LogExtent>(Func<LogExtent, Boolean>)Overloaded. Returns the last element of a sequence that satisfies a specified condition. (Defined by Enumerable.)
Public Extension MethodLast<LogExtent>(Func<LogExtent, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodLastOrDefault<LogExtent>()Overloaded. Returns the last element of a sequence, or a default value if the sequence contains no elements. (Defined by Enumerable.)
Public Extension MethodLastOrDefault<LogExtent>()Overloaded. (Defined by Enumerable.)
Public Extension MethodLastOrDefault<LogExtent>(Func<LogExtent, Boolean>)Overloaded. Returns the last element of a sequence that satisfies a condition or a default value if no such element is found. (Defined by Enumerable.)
Public Extension MethodLastOrDefault<LogExtent>(Func<LogExtent, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodLongCount<LogExtent>()Overloaded. Returns an Int64 that represents the total number of elements in a sequence. (Defined by Enumerable.)
Public Extension MethodLongCount<LogExtent>()Overloaded. (Defined by Enumerable.)
Public Extension MethodLongCount<LogExtent>(Func<LogExtent, Boolean>)Overloaded. Returns an Int64 that represents how many elements in a sequence satisfy a condition. (Defined by Enumerable.)
Public Extension MethodLongCount<LogExtent>(Func<LogExtent, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMax<LogExtent>()Overloaded. Returns the maximum value in a generic sequence. (Defined by Enumerable.)
Public Extension MethodMax<LogExtent>()Overloaded. (Defined by Enumerable.)
Public Extension MethodMax<LogExtent>(Func<LogExtent, Nullable<Decimal>>)Overloaded. Invokes a transform function on each element of a sequence and returns the maximum nullable Decimal value. (Defined by Enumerable.)
Public Extension MethodMax<LogExtent>(Func<LogExtent, Nullable<Decimal>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMax<LogExtent>(Func<LogExtent, Nullable<Double>>)Overloaded. Invokes a transform function on each element of a sequence and returns the maximum nullable Double value. (Defined by Enumerable.)
Public Extension MethodMax<LogExtent>(Func<LogExtent, Nullable<Double>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMax<LogExtent>(Func<LogExtent, Int32>)Overloaded. Invokes a transform function on each element of a sequence and returns the maximum Int32 value. (Defined by Enumerable.)
Public Extension MethodMax<LogExtent>(Func<LogExtent, Nullable<Int32>>)Overloaded. Invokes a transform function on each element of a sequence and returns the maximum nullable Int32 value. (Defined by Enumerable.)
Public Extension MethodMax<LogExtent>(Func<LogExtent, Int64>)Overloaded. Invokes a transform function on each element of a sequence and returns the maximum Int64 value. (Defined by Enumerable.)
Public Extension MethodMax<LogExtent>(Func<LogExtent, Nullable<Int64>>)Overloaded. Invokes a transform function on each element of a sequence and returns the maximum nullable Int64 value. (Defined by Enumerable.)
Public Extension MethodMax<LogExtent>(Func<LogExtent, Single>)Overloaded. Invokes a transform function on each element of a sequence and returns the maximum Single value. (Defined by Enumerable.)
Public Extension MethodMax<LogExtent>(Func<LogExtent, Nullable<Single>>)Overloaded. Invokes a transform function on each element of a sequence and returns the maximum nullable Single value. (Defined by Enumerable.)
Public Extension MethodMax<LogExtent>(Func<LogExtent, Double>)Overloaded. Invokes a transform function on each element of a sequence and returns the maximum Double value. (Defined by Enumerable.)
Public Extension MethodMax<LogExtent>(Func<LogExtent, Decimal>)Overloaded. Invokes a transform function on each element of a sequence and returns the maximum Decimal value. (Defined by Enumerable.)
Public Extension MethodMax<LogExtent>(Func<LogExtent, Decimal>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMax<LogExtent>(Func<LogExtent, Double>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMax<LogExtent>(Func<LogExtent, Int32>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMax<LogExtent>(Func<LogExtent, Int64>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMax<LogExtent>(Func<LogExtent, Nullable<Int32>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMax<LogExtent>(Func<LogExtent, Nullable<Int64>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMax<LogExtent>(Func<LogExtent, Nullable<Single>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMax<LogExtent>(Func<LogExtent, Single>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMax<LogExtent, TResult>(Func<LogExtent, TResult>)Overloaded. Invokes a transform function on each element of a generic sequence and returns the maximum resulting value. (Defined by Enumerable.)
Public Extension MethodMax<LogExtent, TResult>(Func<LogExtent, TResult>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMin<LogExtent>()Overloaded. Returns the minimum value in a generic sequence. (Defined by Enumerable.)
Public Extension MethodMin<LogExtent>()Overloaded. (Defined by Enumerable.)
Public Extension MethodMin<LogExtent>(Func<LogExtent, Nullable<Decimal>>)Overloaded. Invokes a transform function on each element of a sequence and returns the minimum nullable Decimal value. (Defined by Enumerable.)
Public Extension MethodMin<LogExtent>(Func<LogExtent, Nullable<Decimal>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMin<LogExtent>(Func<LogExtent, Nullable<Double>>)Overloaded. Invokes a transform function on each element of a sequence and returns the minimum nullable Double value. (Defined by Enumerable.)
Public Extension MethodMin<LogExtent>(Func<LogExtent, Nullable<Double>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMin<LogExtent>(Func<LogExtent, Int32>)Overloaded. Invokes a transform function on each element of a sequence and returns the minimum Int32 value. (Defined by Enumerable.)
Public Extension MethodMin<LogExtent>(Func<LogExtent, Nullable<Int32>>)Overloaded. Invokes a transform function on each element of a sequence and returns the minimum nullable Int32 value. (Defined by Enumerable.)
Public Extension MethodMin<LogExtent>(Func<LogExtent, Int64>)Overloaded. Invokes a transform function on each element of a sequence and returns the minimum Int64 value. (Defined by Enumerable.)
Public Extension MethodMin<LogExtent>(Func<LogExtent, Nullable<Int64>>)Overloaded. Invokes a transform function on each element of a sequence and returns the minimum nullable Int64 value. (Defined by Enumerable.)
Public Extension MethodMin<LogExtent>(Func<LogExtent, Single>)Overloaded. Invokes a transform function on each element of a sequence and returns the minimum Single value. (Defined by Enumerable.)
Public Extension MethodMin<LogExtent>(Func<LogExtent, Nullable<Single>>)Overloaded. Invokes a transform function on each element of a sequence and returns the minimum nullable Single value. (Defined by Enumerable.)
Public Extension MethodMin<LogExtent>(Func<LogExtent, Double>)Overloaded. Invokes a transform function on each element of a sequence and returns the minimum Double value. (Defined by Enumerable.)
Public Extension MethodMin<LogExtent>(Func<LogExtent, Decimal>)Overloaded. Invokes a transform function on each element of a sequence and returns the minimum Decimal value. (Defined by Enumerable.)
Public Extension MethodMin<LogExtent>(Func<LogExtent, Decimal>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMin<LogExtent>(Func<LogExtent, Double>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMin<LogExtent>(Func<LogExtent, Int32>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMin<LogExtent>(Func<LogExtent, Int64>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMin<LogExtent>(Func<LogExtent, Nullable<Int32>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMin<LogExtent>(Func<LogExtent, Nullable<Int64>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMin<LogExtent>(Func<LogExtent, Nullable<Single>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMin<LogExtent>(Func<LogExtent, Single>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMin<LogExtent, TResult>(Func<LogExtent, TResult>)Overloaded. Invokes a transform function on each element of a generic sequence and returns the minimum resulting value. (Defined by Enumerable.)
Public Extension MethodMin<LogExtent, TResult>(Func<LogExtent, TResult>)Overloaded. (Defined by Enumerable.)
Public Extension MethodOfType<TResult>()Overloaded. Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Public Extension MethodOfType<TResult>()Overloaded. (Defined by Enumerable.)
Public Extension MethodOrderBy<LogExtent, TKey>(Func<LogExtent, TKey>)Overloaded. Sorts the elements of a sequence in ascending order according to a key. (Defined by Enumerable.)
Public Extension MethodOrderBy<LogExtent, TKey>(Func<LogExtent, TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodOrderBy<LogExtent, TKey>(Func<LogExtent, TKey>, IComparer<TKey>)Overloaded. Sorts the elements of a sequence in ascending order by using a specified comparer. (Defined by Enumerable.)
Public Extension MethodOrderBy<LogExtent, TKey>(Func<LogExtent, TKey>, IComparer<TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodOrderByDescending<LogExtent, TKey>(Func<LogExtent, TKey>)Overloaded. Sorts the elements of a sequence in descending order according to a key. (Defined by Enumerable.)
Public Extension MethodOrderByDescending<LogExtent, TKey>(Func<LogExtent, TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodOrderByDescending<LogExtent, TKey>(Func<LogExtent, TKey>, IComparer<TKey>)Overloaded. Sorts the elements of a sequence in descending order by using a specified comparer. (Defined by Enumerable.)
Public Extension MethodOrderByDescending<LogExtent, TKey>(Func<LogExtent, TKey>, IComparer<TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodReverse<LogExtent>()Overloaded. Inverts the order of the elements in a sequence. (Defined by Enumerable.)
Public Extension MethodReverse<LogExtent>()Overloaded. (Defined by Enumerable.)
Public Extension MethodSelect<LogExtent, TResult>(Func<LogExtent, TResult>)Overloaded. Projects each element of a sequence into a new form. (Defined by Enumerable.)
Public Extension MethodSelect<LogExtent, TResult>(Func<LogExtent, Int32, TResult>)Overloaded. Projects each element of a sequence into a new form by incorporating the element's index. (Defined by Enumerable.)
Public Extension MethodSelect<LogExtent, TResult>(Func<LogExtent, TResult>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSelect<LogExtent, TResult>(Func<LogExtent, Int32, TResult>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSelectMany<LogExtent, TResult>(Func<LogExtent, IEnumerable<TResult>>)Overloaded. Projects each element of a sequence to an IEnumerable<T> and flattens the resulting sequences into one sequence. (Defined by Enumerable.)
Public Extension MethodSelectMany<LogExtent, TResult>(Func<LogExtent, Int32, IEnumerable<TResult>>)Overloaded. Projects each element of a sequence to an IEnumerable<T>, and flattens the resulting sequences into one sequence. The index of each source element is used in the projected form of that element. (Defined by Enumerable.)
Public Extension MethodSelectMany<LogExtent, TResult>(Func<LogExtent, IEnumerable<TResult>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSelectMany<LogExtent, TResult>(Func<LogExtent, Int32, IEnumerable<TResult>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSelectMany<LogExtent, TCollection, TResult>(Func<LogExtent, Int32, IEnumerable<TCollection>>, Func<LogExtent, TCollection, TResult>)Overloaded. Projects each element of a sequence to an IEnumerable<T>, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein. The index of each source element is used in the intermediate projected form of that element. (Defined by Enumerable.)
Public Extension MethodSelectMany<LogExtent, TCollection, TResult>(Func<LogExtent, IEnumerable<TCollection>>, Func<LogExtent, TCollection, TResult>)Overloaded. Projects each element of a sequence to an IEnumerable<T>, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein. (Defined by Enumerable.)
Public Extension MethodSelectMany<LogExtent, TCollection, TResult>(Func<LogExtent, IEnumerable<TCollection>>, Func<LogExtent, TCollection, TResult>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSelectMany<LogExtent, TCollection, TResult>(Func<LogExtent, Int32, IEnumerable<TCollection>>, Func<LogExtent, TCollection, TResult>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSequenceEqual<LogExtent>(IEnumerable<LogExtent>)Overloaded. Determines whether two sequences are equal by comparing the elements by using the default equality comparer for their type. (Defined by Enumerable.)
Public Extension MethodSequenceEqual<LogExtent>(IEnumerable<LogExtent>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSequenceEqual<LogExtent>(IEnumerable<LogExtent>, IEqualityComparer<LogExtent>)Overloaded. Determines whether two sequences are equal by comparing their elements by using a specified IEqualityComparer<T>. (Defined by Enumerable.)
Public Extension MethodSequenceEqual<LogExtent>(IEnumerable<LogExtent>, IEqualityComparer<LogExtent>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSingle<LogExtent>()Overloaded. Returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence. (Defined by Enumerable.)
Public Extension MethodSingle<LogExtent>()Overloaded. (Defined by Enumerable.)
Public Extension MethodSingle<LogExtent>(Func<LogExtent, Boolean>)Overloaded. Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists. (Defined by Enumerable.)
Public Extension MethodSingle<LogExtent>(Func<LogExtent, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSingleOrDefault<LogExtent>()Overloaded. Returns the only element of a sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence. (Defined by Enumerable.)
Public Extension MethodSingleOrDefault<LogExtent>()Overloaded. (Defined by Enumerable.)
Public Extension MethodSingleOrDefault<LogExtent>(Func<LogExtent, Boolean>)Overloaded. Returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition. (Defined by Enumerable.)
Public Extension MethodSingleOrDefault<LogExtent>(Func<LogExtent, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSkip<LogExtent>(Int32)Overloaded. Bypasses a specified number of elements in a sequence and then returns the remaining elements. (Defined by Enumerable.)
Public Extension MethodSkip<LogExtent>(Int32)Overloaded. (Defined by Enumerable.)
Public Extension MethodSkipWhile<LogExtent>(Func<LogExtent, Boolean>)Overloaded. Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. (Defined by Enumerable.)
Public Extension MethodSkipWhile<LogExtent>(Func<LogExtent, Int32, Boolean>)Overloaded. Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. The element's index is used in the logic of the predicate function. (Defined by Enumerable.)
Public Extension MethodSkipWhile<LogExtent>(Func<LogExtent, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSkipWhile<LogExtent>(Func<LogExtent, Int32, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSum<LogExtent>(Func<LogExtent, Nullable<Decimal>>)Overloaded. Computes the sum of the sequence of nullable Decimal values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension MethodSum<LogExtent>(Func<LogExtent, Nullable<Decimal>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSum<LogExtent>(Func<LogExtent, Nullable<Double>>)Overloaded. Computes the sum of the sequence of nullable Double values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension MethodSum<LogExtent>(Func<LogExtent, Nullable<Double>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSum<LogExtent>(Func<LogExtent, Int32>)Overloaded. Computes the sum of the sequence of Int32 values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension MethodSum<LogExtent>(Func<LogExtent, Nullable<Int32>>)Overloaded. Computes the sum of the sequence of nullable Int32 values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension MethodSum<LogExtent>(Func<LogExtent, Int64>)Overloaded. Computes the sum of the sequence of Int64 values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension MethodSum<LogExtent>(Func<LogExtent, Nullable<Int64>>)Overloaded. Computes the sum of the sequence of nullable Int64 values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension MethodSum<LogExtent>(Func<LogExtent, Single>)Overloaded. Computes the sum of the sequence of Single values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension MethodSum<LogExtent>(Func<LogExtent, Nullable<Single>>)Overloaded. Computes the sum of the sequence of nullable Single values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension MethodSum<LogExtent>(Func<LogExtent, Double>)Overloaded. Computes the sum of the sequence of Double values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension MethodSum<LogExtent>(Func<LogExtent, Decimal>)Overloaded. Computes the sum of the sequence of Decimal values that are obtained by invoking a transform function on each element of the input sequence. (Defined by Enumerable.)
Public Extension MethodSum<LogExtent>(Func<LogExtent, Decimal>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSum<LogExtent>(Func<LogExtent, Double>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSum<LogExtent>(Func<LogExtent, Int32>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSum<LogExtent>(Func<LogExtent, Int64>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSum<LogExtent>(Func<LogExtent, Nullable<Int32>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSum<LogExtent>(Func<LogExtent, Nullable<Int64>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSum<LogExtent>(Func<LogExtent, Nullable<Single>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSum<LogExtent>(Func<LogExtent, Single>)Overloaded. (Defined by Enumerable.)
Public Extension MethodTake<LogExtent>(Int32)Overloaded. Returns a specified number of contiguous elements from the start of a sequence. (Defined by Enumerable.)
Public Extension MethodTake<LogExtent>(Int32)Overloaded. (Defined by Enumerable.)
Public Extension MethodTakeWhile<LogExtent>(Func<LogExtent, Boolean>)Overloaded. Returns elements from a sequence as long as a specified condition is true. (Defined by Enumerable.)
Public Extension MethodTakeWhile<LogExtent>(Func<LogExtent, Int32, Boolean>)Overloaded. Returns elements from a sequence as long as a specified condition is true. The element's index is used in the logic of the predicate function. (Defined by Enumerable.)
Public Extension MethodTakeWhile<LogExtent>(Func<LogExtent, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodTakeWhile<LogExtent>(Func<LogExtent, Int32, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodToArray<LogExtent>()Overloaded. Creates an array from a IEnumerable<T>. (Defined by Enumerable.)
Public Extension MethodToArray<LogExtent>()Overloaded. (Defined by Enumerable.)
Public Extension MethodToDictionary<LogExtent, TKey>(Func<LogExtent, TKey>)Overloaded. Creates a Dictionary<TKey, TValue> from an IEnumerable<T> according to a specified key selector function. (Defined by Enumerable.)
Public Extension MethodToDictionary<LogExtent, TKey>(Func<LogExtent, TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodToDictionary<LogExtent, TKey>(Func<LogExtent, TKey>, IEqualityComparer<TKey>)Overloaded. Creates a Dictionary<TKey, TValue> from an IEnumerable<T> according to a specified key selector function and key comparer. (Defined by Enumerable.)
Public Extension MethodToDictionary<LogExtent, TKey>(Func<LogExtent, TKey>, IEqualityComparer<TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodToDictionary<LogExtent, TKey, TElement>(Func<LogExtent, TKey>, Func<LogExtent, TElement>)Overloaded. Creates a Dictionary<TKey, TValue> from an IEnumerable<T> according to specified key selector and element selector functions. (Defined by Enumerable.)
Public Extension MethodToDictionary<LogExtent, TKey, TElement>(Func<LogExtent, TKey>, Func<LogExtent, TElement>)Overloaded. (Defined by Enumerable.)
Public Extension MethodToDictionary<LogExtent, TKey, TElement>(Func<LogExtent, TKey>, Func<LogExtent, TElement>, IEqualityComparer<TKey>)Overloaded. Creates a Dictionary<TKey, TValue> from an IEnumerable<T> according to a specified key selector function, a comparer, and an element selector function. (Defined by Enumerable.)
Public Extension MethodToDictionary<LogExtent, TKey, TElement>(Func<LogExtent, TKey>, Func<LogExtent, TElement>, IEqualityComparer<TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodToList<LogExtent>()Overloaded. Creates a List<T> from an IEnumerable<T>. (Defined by Enumerable.)
Public Extension MethodToList<LogExtent>()Overloaded. (Defined by Enumerable.)
Public Extension MethodToLookup<LogExtent, TKey>(Func<LogExtent, TKey>)Overloaded. Creates a Lookup<TKey, TElement> from an IEnumerable<T> according to a specified key selector function. (Defined by Enumerable.)
Public Extension MethodToLookup<LogExtent, TKey>(Func<LogExtent, TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodToLookup<LogExtent, TKey>(Func<LogExtent, TKey>, IEqualityComparer<TKey>)Overloaded. Creates a Lookup<TKey, TElement> from an IEnumerable<T> according to a specified key selector function and key comparer. (Defined by Enumerable.)
Public Extension MethodToLookup<LogExtent, TKey>(Func<LogExtent, TKey>, IEqualityComparer<TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodToLookup<LogExtent, TKey, TElement>(Func<LogExtent, TKey>, Func<LogExtent, TElement>)Overloaded. Creates a Lookup<TKey, TElement> from an IEnumerable<T> according to specified key selector and element selector functions. (Defined by Enumerable.)
Public Extension MethodToLookup<LogExtent, TKey, TElement>(Func<LogExtent, TKey>, Func<LogExtent, TElement>)Overloaded. (Defined by Enumerable.)
Public Extension MethodToLookup<LogExtent, TKey, TElement>(Func<LogExtent, TKey>, Func<LogExtent, TElement>, IEqualityComparer<TKey>)Overloaded. Creates a Lookup<TKey, TElement> from an IEnumerable<T> according to a specified key selector function, a comparer and an element selector function. (Defined by Enumerable.)
Public Extension MethodToLookup<LogExtent, TKey, TElement>(Func<LogExtent, TKey>, Func<LogExtent, TElement>, IEqualityComparer<TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodUnion<LogExtent>(IEnumerable<LogExtent>)Overloaded. Produces the set union of two sequences by using the default equality comparer. (Defined by Enumerable.)
Public Extension MethodUnion<LogExtent>(IEnumerable<LogExtent>)Overloaded. (Defined by Enumerable.)
Public Extension MethodUnion<LogExtent>(IEnumerable<LogExtent>, IEqualityComparer<LogExtent>)Overloaded. Produces the set union of two sequences by using a specified IEqualityComparer<T>. (Defined by Enumerable.)
Public Extension MethodUnion<LogExtent>(IEnumerable<LogExtent>, IEqualityComparer<LogExtent>)Overloaded. (Defined by Enumerable.)
Public Extension MethodWhere<LogExtent>(Func<LogExtent, Boolean>)Overloaded. Filters a sequence of values based on a predicate. (Defined by Enumerable.)
Public Extension MethodWhere<LogExtent>(Func<LogExtent, Int32, Boolean>)Overloaded. Filters a sequence of values based on a predicate. Each element's index is used in the logic of the predicate function. (Defined by Enumerable.)
Public Extension MethodWhere<LogExtent>(Func<LogExtent, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodWhere<LogExtent>(Func<LogExtent, Int32, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodZip<LogExtent, TSecond, TResult>(IEnumerable<TSecond>, Func<LogExtent, TSecond, TResult>)Overloaded. Applies a specified function to the corresponding elements of two sequences, producing a sequence of the results. (Defined by Enumerable.)
Public Extension MethodZip<LogExtent, TSecond, TResult>(IEnumerable<TSecond>, Func<LogExtent, TSecond, TResult>)Overloaded. (Defined by Enumerable.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIEnumerable.GetEnumeratorGets an enumerator for the LogExtent instances in this collection. This method cannot be inherited.
Top

This class contains a collection of LogExtent objects associated with a LogStore. A LogStore instance stores its data in a collection of disk extents, represented by LogExtent instances. A particular LogExtent is associated with one LogStore, and LogExtent objects in the same LogStore are of identical size. Space is added to and removed from a LogStore instance in extent increments.

Although LogExtent objects are represented on disk as files, they should not be moved or deleted as normal files. Rather, you should use the methods provided by this class for adding and deleting LogExtent instances directly. Extents are usually removed when they no longer contain any active data. However, if the force parameter in the Remove method is true, an exception is thrown if they cannot be removed immediately.

You cannot remove the last extent in the LogExtentCollection, which means that the Count property cannot be zero after an extent is added.

This example shows how to use the LogExtent and LogExtentCollection classes to add and emulate extents in a log sequence.

using System;
using System.IO;
using System.Collections.Generic;
using System.Text;
using System.IO.Log;

namespace MyLogRecordSequence
{
    public class MyLog
    {
        string logName = "test.log";
        string logContainer = "MyExtent0";
        int containerSize = 32 * 1024;
        LogRecordSequence sequence = null;
        bool delete = true;

        // These are used in the TailPinned event handler. 
        public static LogRecordSequence MySequence = null;
        public static bool AdvanceBase = true;

        public MyLog()
        {
            // Create a LogRecordSequence.
            sequence = new LogRecordSequence(this.logName,
                                              FileMode.CreateNew,
                                              FileAccess.ReadWrite,
                                              FileShare.None);

            // At least one container/extent must be added for Log Record Sequence.
            sequence.LogStore.Extents.Add(this.logContainer, this.containerSize);

            MySequence = sequence;

        }

        public void AddExtents()
        {
            // Add two additional extents. The extents are  
            // of the same size as the first extent.
            sequence.LogStore.Extents.Add("MyExtent1");
            sequence.LogStore.Extents.Add("MyExtent2");
        }

        public void EnumerateExtents()
        {
            LogStore store = sequence.LogStore;

            Console.WriteLine("Enumerating Log Extents...");
            Console.WriteLine("    Extent Count: {0} extents", store.Extents.Count);
            Console.WriteLine("    Extents Are...");
            foreach (LogExtent extent in store.Extents)
            {
                Console.WriteLine("      {0} ({1}, {2})",
                                  Path.GetFileName(extent.Path),
                                  extent.Size,
                                  extent.State);
            }
            Console.WriteLine("    Free Extents: {0} Free", store.Extents.FreeCount);   
        }

        public void SetLogPolicy()
        {
            Console.WriteLine();
            Console.WriteLine("Setting current log policy...");

            // SET LOG POLICY

            LogPolicy policy = sequence.LogStore.Policy;

            // Set AutoGrow policy. This enables the log to automatically grow 
            // when the existing extents are full. New extents are added until 
            // we reach the MaximumExtentCount extents. 
            // AutoGrow policy is supported only in Windows Vista and not available in R2. 

            //policy.AutoGrow = true; 

            // Set the Growth Rate in terms of extents. This policy specifies 
            // "how much" the log should grow. 
            policy.GrowthRate = new PolicyUnit(2, PolicyUnitType.Extents);

            // Set the AutoShrink policy. This enables the log to automatically 
            // shrink if the available free space exceeds the shrink percentage.  
            // AutoGrow/shrink policy is supported only in Windows Vista and not available in R2. 

            //policy.AutoShrinkPercentage = new PolicyUnit(30, PolicyUnitType.Percentage); 

            // Set the PinnedTailThreshold policy. 
            // A tail pinned event is triggered when there is no 
            // log space available and log space may be freed by advancing the base. 
            // The user must handle the tail pinned event by advancing the base of the log.  
            // If the user is not able to move the base of the log, the user should report with exception in 
            // the tail pinned handler. 
            // PinnedTailThreashold policy dictates the amount of space that the TailPinned event requests  
            // for advancing the base of the log. The amount of space can be in percentage or in terms of bytes  
            // which is rounded off to the nearest containers in CLFS. The default is 35 percent.


            policy.PinnedTailThreshold = new PolicyUnit(10, PolicyUnitType.Percentage);

            // Set the maximum extents the log can have.
            policy.MaximumExtentCount = 6;

            // Set the minimum extents the log can have.
            policy.MinimumExtentCount = 2;

            // Set the prefix for new containers that are added.  
            // when AutoGrow is enabled. 
            //policy.NewExtentPrefix = "MyLogPrefix";

            // Set the suffix number for new containers that are added. 
            // when AutoGrow is enabled. 
            policy.NextExtentSuffix = 3;

            // Commit the log policy.
            policy.Commit();

            // Refresh updates the IO.Log policy properties with current log policy  
            // set in the log. 
            policy.Refresh();

            // LOG POLICY END 
            //  

            //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
            // Setting up IO.Log provided capabilities... 
            //  

            // SET RETRY APPEND 

            // IO.Log provides a mechanism similar to AutoGrow. 
            // If the existing log is full and an append fails, setting RetryAppend 
            // invokes the CLFS policy engine to add new extents and re-tries 
            // record appends. If MaximumExtent count has been reached,  
            // a SequenceFullException is thrown.  
            // 

            sequence.RetryAppend = true;

            // RETRY APPEND END 

            // REGISTER FOR TAILPINNED EVENT NOTIFICATIONS 

            // Register for TailPinned Event by passing in an event handler. 
            // An event is raised when the log full condition is reached. 
            // The user should either advance the base sequence number to the  
            // nearest valid sequence number recommended in the tail pinned event or 
            // report a failure that it is not able to advance the base sequence  
            // number.  
            //

            sequence.TailPinned += new EventHandler<TailPinnedEventArgs>(HandleTailPinned);  

            Console.WriteLine("Done...");
        }

        public void ShowLogPolicy()
        {
            Console.WriteLine();
            Console.WriteLine("Showing current log policy...");

            LogPolicy policy = sequence.LogStore.Policy;

            Console.WriteLine("    Minimum extent count:  {0}", policy.MinimumExtentCount);
            Console.WriteLine("    Maximum extent count:  {0}", policy.MaximumExtentCount);
            Console.WriteLine("    Growth rate:           {0}", policy.GrowthRate);
            Console.WriteLine("    Pinned tail threshold: {0}", policy.PinnedTailThreshold);
            Console.WriteLine("    Auto shrink percent:   {0}", policy.AutoShrinkPercentage);
            Console.WriteLine("    Auto grow enabled:     {0}", policy.AutoGrow);
            Console.WriteLine("    New extent prefix:     {0}", policy.NewExtentPrefix);
            Console.WriteLine("    Next extent suffix:    {0}", policy.NextExtentSuffix);

	}

        // Append records. Appending three records.   
        public void AppendRecords()
        {
            Console.WriteLine("Appending Log Records...");
            SequenceNumber previous = SequenceNumber.Invalid;

            previous = sequence.Append(CreateData("Hello World!"), SequenceNumber.Invalid, SequenceNumber.Invalid, RecordAppendOptions.ForceFlush);
            previous = sequence.Append(CreateData("This is my first Logging App"), SequenceNumber.Invalid, SequenceNumber.Invalid, RecordAppendOptions.ForceFlush);
            previous = sequence.Append(CreateData("Using LogRecordSequence..."), SequenceNumber.Invalid, SequenceNumber.Invalid, RecordAppendOptions.ForceFlush);
	    
            Console.WriteLine("Done...");
        }


        // Read the records added to the log.  
        public void ReadRecords()
        {
            Encoding enc = Encoding.Unicode;

            Console.WriteLine();

            Console.WriteLine("Reading Log Records...");
            try
            {
                foreach (LogRecord record in this.sequence.ReadLogRecords(this.sequence.BaseSequenceNumber, LogRecordEnumeratorType.Next))
                {
                    byte[] data = new byte[record.Data.Length];
                    record.Data.Read(data, 0, (int)record.Data.Length);
                    string mystr = enc.GetString(data);
                    Console.WriteLine("    {0}", mystr);
                }
            }
            catch (Exception e)
            {
                Console.WriteLine("Exception {0} {1}", e.GetType(), e.Message);
            }

            Console.WriteLine();
        }

        public void FillLog()
        {
            bool append = true;

            while (append)
            {
                try
                {
                    sequence.Append(CreateData(16 * 1024), SequenceNumber.Invalid, SequenceNumber.Invalid, RecordAppendOptions.ForceFlush);
                }

                catch (SequenceFullException)
                {
                    Console.WriteLine("Log is Full...");
                    append = false;
                }
            }
        }

        // Dispose the record sequence and delete the log file.  
        public void Cleanup()
        {
            // Dispose the sequence
            sequence.Dispose();

            // Delete the log file. 
            if (delete)
            {
                try
                {
                    // This deletes the base log file and all the extents associated with the log.
                    LogStore.Delete(this.logName);
                }
                catch (Exception e)
                {
                    Console.WriteLine("Exception {0} {1}", e.GetType(), e.Message);
                }
            }
        }

        // Converts the given data to an Array of ArraySegment<byte>  
        public static IList<ArraySegment<byte>> CreateData(string str)
        {
            Encoding enc = Encoding.Unicode;

            byte[] array = enc.GetBytes(str);

            ArraySegment<byte>[] segments = new ArraySegment<byte>[1];
            segments[0] = new ArraySegment<byte>(array);

            return Array.AsReadOnly<ArraySegment<byte>>(segments);
        }

        public static IList<ArraySegment<byte>> CreateData(int size)
        {
            byte[] array = new byte[size];

            Random rnd = new Random();
            rnd.NextBytes(array);

            ArraySegment<byte>[] segments = new ArraySegment<byte>[1];
            segments[0] = new ArraySegment<byte>(array);

            return Array.AsReadOnly<ArraySegment<byte>>(segments);
        }

        public static SequenceNumber GetAdvanceBaseSeqNumber(SequenceNumber recTargetSeqNum)
        {
            SequenceNumber targetSequenceNumber = SequenceNumber.Invalid;

            Console.WriteLine("Getting actual target sequence number...");

            //  
            // Implement the logic for returning a valid sequence number closer to 
            // recommended target sequence number.  
            // 

            return targetSequenceNumber;
        }

        public static void HandleTailPinned(object arg, TailPinnedEventArgs tailPinnedEventArgs)
        {
            Console.WriteLine("TailPinned has fired");

            // Based on the implementation of a logging application, the log base can be moved 
            // to free up more log space and if it is not possible to move the  
            // base, the application should report by throwing an exception. 

            if(MyLog.AdvanceBase)
            {
                try
                {
                    // TailPnnedEventArgs has the recommended sequence number and its generated  
                    // based on PinnedTailThreshold policy.  
                    // This does not map to an actual sequence number in the record sequence 
                    // but an approximation and potentially frees up the threshold % log space 
                    // when the log base is advanced to a valid sequence number closer to the  
                    // recommended sequence number.  
                    // The user should use this sequence number to locate a closest valid sequence 
                    // number to advance the base of the log.

                    SequenceNumber recommendedTargetSeqNum = tailPinnedEventArgs.TargetSequenceNumber; 

                    // Get the actual Target sequence number.
                    SequenceNumber actualTargetSeqNum = MyLog.GetAdvanceBaseSeqNumber(recommendedTargetSeqNum);

                    MySequence.AdvanceBaseSequenceNumber(actualTargetSeqNum);
                }
                catch (Exception e)
                {
                    Console.WriteLine("Exception thrown {0} {1}", e.GetType(), e.Message);
                }
            }
            else
            {
                // Report back Error if under some conditions the log cannot 
                // advance the base sequence number.

                Console.WriteLine("Reporting Error! Unable to move the base sequence number!");
                throw new IOException();
            }
        }
    }

    class LogSample
    {
        static void Main(string[] args)
        {
            // Create log record sequence.
            MyLog log = new MyLog();

            // Add additional extents.
            log.AddExtents();

            // Enumerate the current log extents.
            log.EnumerateExtents();

            // Set log policies and register for TailPinned event notifications. 
            log.SetLogPolicy();

            log.ShowLogPolicy();

            // Append a few records and read the appended records. 
            log.AppendRecords();
            log.ReadRecords();

            // Fill the Log to trigger log growth...and subsequent TailPinned notifications.
            log.FillLog();

            log.EnumerateExtents();

            log.Cleanup();
        }
    }
}

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft