Export (0) Print
Expand All

ReservationCollection Class

Manages the collection of space reservations made in a record sequence.

System.Object
  System.IO.Log.ReservationCollection

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

public abstract class ReservationCollection : ICollection<long>, 
	IEnumerable<long>, IEnumerable

The ReservationCollection type exposes the following members.

  NameDescription
Protected methodReservationCollectionInitializes a new instance of the ReservationCollection class.
Top

  NameDescription
Public propertyCountGets the number of reservations in the collection.
Public propertyIsReadOnlyGets a value that indicates whether the collection is read-only.
Top

  NameDescription
Public methodAddAllocates a reservation and adds it to the collection. This method cannot be inherited.
Public methodClearReleases all of the reservations in the collection. This method cannot be inherited.
Public methodContainsDetermines whether a reservation of the specified size has been made. This method cannot be inherited.
Public methodCopyToCopies the entire collection to a one-dimensional array, starting at the specified index of the target array. This method cannot be inherited.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows the ReservationCollection to free resources before it is destroyed by the garbage collector. (Overrides Object.Finalize().)
Protected methodFreeReservationWhen overridden in a derived class, releases a reservation of the specified size.
Protected methodGetBestMatchingReservationWhen overridden in a derived class, gets the best matching reservation for a given size.
Public methodGetEnumeratorReturns an enumerator that can iterate through the ReservationCollection. 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.)
Protected methodMakeReservationWhen overridden in a derived class, allocates a reservation of the specified size.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRemoveReleases a reservation of the specified size, if one has been made. This method cannot be inherited.
Protected methodReservationFreedWhen overridden in a derived class, indicates that a reservation has been released.
Protected methodReservationMadeWhen overridden in a derived class, indicates that a reservation has been made.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public Extension MethodAggregate<Int64>(Func<Int64, Int64, Int64>)Overloaded. Applies an accumulator function over a sequence. (Defined by Enumerable.)
Public Extension MethodAggregate<Int64>(Func<Int64, Int64, Int64>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAggregate<Int64, TAccumulate>(TAccumulate, Func<TAccumulate, Int64, 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<Int64, TAccumulate>(TAccumulate, Func<TAccumulate, Int64, TAccumulate>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAggregate<Int64, TAccumulate, TResult>(TAccumulate, Func<TAccumulate, Int64, 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<Int64, TAccumulate, TResult>(TAccumulate, Func<TAccumulate, Int64, TAccumulate>, Func<TAccumulate, TResult>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAll<Int64>(Func<Int64, Boolean>)Overloaded. Determines whether all elements of a sequence satisfy a condition. (Defined by Enumerable.)
Public Extension MethodAll<Int64>(Func<Int64, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAny<Int64>()Overloaded. Determines whether a sequence contains any elements. (Defined by Enumerable.)
Public Extension MethodAny<Int64>()Overloaded. (Defined by Enumerable.)
Public Extension MethodAny<Int64>(Func<Int64, Boolean>)Overloaded. Determines whether any element of a sequence satisfies a condition. (Defined by Enumerable.)
Public Extension MethodAny<Int64>(Func<Int64, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAsEnumerable<Int64>()Overloaded. Returns the input typed as IEnumerable<T>. (Defined by Enumerable.)
Public Extension MethodAsEnumerable<Int64>()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<Int64>()Overloaded. Enables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension MethodAsParallel<Int64>()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<Int64>()Overloaded. Converts a generic IEnumerable<T> to a generic IQueryable<T>. (Defined by Queryable.)
Public Extension MethodAsQueryable<Int64>()Overloaded. (Defined by Queryable.)
Public Extension MethodAverage()Overloaded. Computes the average of a sequence of Int64 values. (Defined by Enumerable.)
Public Extension MethodAverage()Overloaded. (Defined by Enumerable.)
Public Extension MethodAverage<Int64>(Func<Int64, 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<Int64>(Func<Int64, Nullable<Decimal>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAverage<Int64>(Func<Int64, 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<Int64>(Func<Int64, Nullable<Double>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAverage<Int64>(Func<Int64, 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<Int64>(Func<Int64, 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<Int64>(Func<Int64, 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<Int64>(Func<Int64, 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<Int64>(Func<Int64, 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<Int64>(Func<Int64, 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<Int64>(Func<Int64, 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<Int64>(Func<Int64, 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<Int64>(Func<Int64, Decimal>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAverage<Int64>(Func<Int64, Double>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAverage<Int64>(Func<Int64, Int32>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAverage<Int64>(Func<Int64, Int64>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAverage<Int64>(Func<Int64, Nullable<Int32>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAverage<Int64>(Func<Int64, Nullable<Int64>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAverage<Int64>(Func<Int64, Nullable<Single>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodAverage<Int64>(Func<Int64, 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<Int64>(IEnumerable<Int64>)Overloaded. Concatenates two sequences. (Defined by Enumerable.)
Public Extension MethodConcat<Int64>(IEnumerable<Int64>)Overloaded. (Defined by Enumerable.)
Public Extension MethodContains<Int64>(Int64)Overloaded. Determines whether a sequence contains a specified element by using the default equality comparer. (Defined by Enumerable.)
Public Extension MethodContains<Int64>(Int64)Overloaded. (Defined by Enumerable.)
Public Extension MethodContains<Int64>(Int64, IEqualityComparer<Int64>)Overloaded. Determines whether a sequence contains a specified element by using a specified IEqualityComparer<T>. (Defined by Enumerable.)
Public Extension MethodContains<Int64>(Int64, IEqualityComparer<Int64>)Overloaded. (Defined by Enumerable.)
Public Extension MethodCount<Int64>()Overloaded. Returns the number of elements in a sequence. (Defined by Enumerable.)
Public Extension MethodCount<Int64>()Overloaded. (Defined by Enumerable.)
Public Extension MethodCount<Int64>(Func<Int64, Boolean>)Overloaded. Returns a number that represents how many elements in the specified sequence satisfy a condition. (Defined by Enumerable.)
Public Extension MethodCount<Int64>(Func<Int64, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodDefaultIfEmpty<Int64>()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<Int64>()Overloaded. (Defined by Enumerable.)
Public Extension MethodDefaultIfEmpty<Int64>(Int64)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<Int64>(Int64)Overloaded. (Defined by Enumerable.)
Public Extension MethodDistinct<Int64>()Overloaded. Returns distinct elements from a sequence by using the default equality comparer to compare values. (Defined by Enumerable.)
Public Extension MethodDistinct<Int64>()Overloaded. (Defined by Enumerable.)
Public Extension MethodDistinct<Int64>(IEqualityComparer<Int64>)Overloaded. Returns distinct elements from a sequence by using a specified IEqualityComparer<T> to compare values. (Defined by Enumerable.)
Public Extension MethodDistinct<Int64>(IEqualityComparer<Int64>)Overloaded. (Defined by Enumerable.)
Public Extension MethodElementAt<Int64>(Int32)Overloaded. Returns the element at a specified index in a sequence. (Defined by Enumerable.)
Public Extension MethodElementAt<Int64>(Int32)Overloaded. (Defined by Enumerable.)
Public Extension MethodElementAtOrDefault<Int64>(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<Int64>(Int32)Overloaded. (Defined by Enumerable.)
Public Extension MethodExcept<Int64>(IEnumerable<Int64>)Overloaded. Produces the set difference of two sequences by using the default equality comparer to compare values. (Defined by Enumerable.)
Public Extension MethodExcept<Int64>(IEnumerable<Int64>)Overloaded. (Defined by Enumerable.)
Public Extension MethodExcept<Int64>(IEnumerable<Int64>, IEqualityComparer<Int64>)Overloaded. Produces the set difference of two sequences by using the specified IEqualityComparer<T> to compare values. (Defined by Enumerable.)
Public Extension MethodExcept<Int64>(IEnumerable<Int64>, IEqualityComparer<Int64>)Overloaded. (Defined by Enumerable.)
Public Extension MethodFirst<Int64>()Overloaded. Returns the first element of a sequence. (Defined by Enumerable.)
Public Extension MethodFirst<Int64>()Overloaded. (Defined by Enumerable.)
Public Extension MethodFirst<Int64>(Func<Int64, Boolean>)Overloaded. Returns the first element in a sequence that satisfies a specified condition. (Defined by Enumerable.)
Public Extension MethodFirst<Int64>(Func<Int64, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodFirstOrDefault<Int64>()Overloaded. Returns the first element of a sequence, or a default value if the sequence contains no elements. (Defined by Enumerable.)
Public Extension MethodFirstOrDefault<Int64>()Overloaded. (Defined by Enumerable.)
Public Extension MethodFirstOrDefault<Int64>(Func<Int64, 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<Int64>(Func<Int64, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodGroupBy<Int64, TKey>(Func<Int64, TKey>)Overloaded. Groups the elements of a sequence according to a specified key selector function. (Defined by Enumerable.)
Public Extension MethodGroupBy<Int64, TKey>(Func<Int64, TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodGroupBy<Int64, TKey>(Func<Int64, 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<Int64, TKey>(Func<Int64, TKey>, IEqualityComparer<TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodGroupBy<Int64, TKey, TElement>(Func<Int64, TKey>, Func<Int64, 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<Int64, TKey, TResult>(Func<Int64, TKey>, Func<TKey, IEnumerable<Int64>, 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<Int64, TKey, TElement>(Func<Int64, TKey>, Func<Int64, TElement>)Overloaded. (Defined by Enumerable.)
Public Extension MethodGroupBy<Int64, TKey, TResult>(Func<Int64, TKey>, Func<TKey, IEnumerable<Int64>, TResult>)Overloaded. (Defined by Enumerable.)
Public Extension MethodGroupBy<Int64, TKey, TElement>(Func<Int64, TKey>, Func<Int64, 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<Int64, TKey, TResult>(Func<Int64, TKey>, Func<TKey, IEnumerable<Int64>, 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<Int64, TKey, TElement>(Func<Int64, TKey>, Func<Int64, TElement>, IEqualityComparer<TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodGroupBy<Int64, TKey, TResult>(Func<Int64, TKey>, Func<TKey, IEnumerable<Int64>, TResult>, IEqualityComparer<TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodGroupBy<Int64, TKey, TElement, TResult>(Func<Int64, TKey>, Func<Int64, 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<Int64, TKey, TElement, TResult>(Func<Int64, TKey>, Func<Int64, TElement>, Func<TKey, IEnumerable<TElement>, TResult>)Overloaded. (Defined by Enumerable.)
Public Extension MethodGroupBy<Int64, TKey, TElement, TResult>(Func<Int64, TKey>, Func<Int64, 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<Int64, TKey, TElement, TResult>(Func<Int64, TKey>, Func<Int64, TElement>, Func<TKey, IEnumerable<TElement>, TResult>, IEqualityComparer<TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodGroupJoin<Int64, TInner, TKey, TResult>(IEnumerable<TInner>, Func<Int64, TKey>, Func<TInner, TKey>, Func<Int64, 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<Int64, TInner, TKey, TResult>(IEnumerable<TInner>, Func<Int64, TKey>, Func<TInner, TKey>, Func<Int64, IEnumerable<TInner>, TResult>)Overloaded. (Defined by Enumerable.)
Public Extension MethodGroupJoin<Int64, TInner, TKey, TResult>(IEnumerable<TInner>, Func<Int64, TKey>, Func<TInner, TKey>, Func<Int64, 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<Int64, TInner, TKey, TResult>(IEnumerable<TInner>, Func<Int64, TKey>, Func<TInner, TKey>, Func<Int64, IEnumerable<TInner>, TResult>, IEqualityComparer<TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodIntersect<Int64>(IEnumerable<Int64>)Overloaded. Produces the set intersection of two sequences by using the default equality comparer to compare values. (Defined by Enumerable.)
Public Extension MethodIntersect<Int64>(IEnumerable<Int64>)Overloaded. (Defined by Enumerable.)
Public Extension MethodIntersect<Int64>(IEnumerable<Int64>, IEqualityComparer<Int64>)Overloaded. Produces the set intersection of two sequences by using the specified IEqualityComparer<T> to compare values. (Defined by Enumerable.)
Public Extension MethodIntersect<Int64>(IEnumerable<Int64>, IEqualityComparer<Int64>)Overloaded. (Defined by Enumerable.)
Public Extension MethodJoin<Int64, TInner, TKey, TResult>(IEnumerable<TInner>, Func<Int64, TKey>, Func<TInner, TKey>, Func<Int64, 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<Int64, TInner, TKey, TResult>(IEnumerable<TInner>, Func<Int64, TKey>, Func<TInner, TKey>, Func<Int64, TInner, TResult>)Overloaded. (Defined by Enumerable.)
Public Extension MethodJoin<Int64, TInner, TKey, TResult>(IEnumerable<TInner>, Func<Int64, TKey>, Func<TInner, TKey>, Func<Int64, 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<Int64, TInner, TKey, TResult>(IEnumerable<TInner>, Func<Int64, TKey>, Func<TInner, TKey>, Func<Int64, TInner, TResult>, IEqualityComparer<TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodLast<Int64>()Overloaded. Returns the last element of a sequence. (Defined by Enumerable.)
Public Extension MethodLast<Int64>()Overloaded. (Defined by Enumerable.)
Public Extension MethodLast<Int64>(Func<Int64, Boolean>)Overloaded. Returns the last element of a sequence that satisfies a specified condition. (Defined by Enumerable.)
Public Extension MethodLast<Int64>(Func<Int64, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodLastOrDefault<Int64>()Overloaded. Returns the last element of a sequence, or a default value if the sequence contains no elements. (Defined by Enumerable.)
Public Extension MethodLastOrDefault<Int64>()Overloaded. (Defined by Enumerable.)
Public Extension MethodLastOrDefault<Int64>(Func<Int64, 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<Int64>(Func<Int64, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodLongCount<Int64>()Overloaded. Returns an Int64 that represents the total number of elements in a sequence. (Defined by Enumerable.)
Public Extension MethodLongCount<Int64>()Overloaded. (Defined by Enumerable.)
Public Extension MethodLongCount<Int64>(Func<Int64, Boolean>)Overloaded. Returns an Int64 that represents how many elements in a sequence satisfy a condition. (Defined by Enumerable.)
Public Extension MethodLongCount<Int64>(Func<Int64, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMax()Overloaded. Returns the maximum value in a sequence of Int64 values. (Defined by Enumerable.)
Public Extension MethodMax()Overloaded. (Defined by Enumerable.)
Public Extension MethodMax<Int64>()Overloaded. Returns the maximum value in a generic sequence. (Defined by Enumerable.)
Public Extension MethodMax<Int64>()Overloaded. (Defined by Enumerable.)
Public Extension MethodMax<Int64>(Func<Int64, 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<Int64>(Func<Int64, Nullable<Decimal>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMax<Int64>(Func<Int64, 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<Int64>(Func<Int64, Nullable<Double>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMax<Int64>(Func<Int64, Int32>)Overloaded. Invokes a transform function on each element of a sequence and returns the maximum Int32 value. (Defined by Enumerable.)
Public Extension MethodMax<Int64>(Func<Int64, 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<Int64>(Func<Int64, Int64>)Overloaded. Invokes a transform function on each element of a sequence and returns the maximum Int64 value. (Defined by Enumerable.)
Public Extension MethodMax<Int64>(Func<Int64, 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<Int64>(Func<Int64, Single>)Overloaded. Invokes a transform function on each element of a sequence and returns the maximum Single value. (Defined by Enumerable.)
Public Extension MethodMax<Int64>(Func<Int64, 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<Int64>(Func<Int64, Double>)Overloaded. Invokes a transform function on each element of a sequence and returns the maximum Double value. (Defined by Enumerable.)
Public Extension MethodMax<Int64>(Func<Int64, Decimal>)Overloaded. Invokes a transform function on each element of a sequence and returns the maximum Decimal value. (Defined by Enumerable.)
Public Extension MethodMax<Int64>(Func<Int64, Decimal>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMax<Int64>(Func<Int64, Double>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMax<Int64>(Func<Int64, Int32>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMax<Int64>(Func<Int64, Int64>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMax<Int64>(Func<Int64, Nullable<Int32>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMax<Int64>(Func<Int64, Nullable<Int64>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMax<Int64>(Func<Int64, Nullable<Single>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMax<Int64>(Func<Int64, Single>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMax<Int64, TResult>(Func<Int64, 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<Int64, TResult>(Func<Int64, TResult>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMin()Overloaded. Returns the minimum value in a sequence of Int64 values. (Defined by Enumerable.)
Public Extension MethodMin()Overloaded. (Defined by Enumerable.)
Public Extension MethodMin<Int64>()Overloaded. Returns the minimum value in a generic sequence. (Defined by Enumerable.)
Public Extension MethodMin<Int64>()Overloaded. (Defined by Enumerable.)
Public Extension MethodMin<Int64>(Func<Int64, 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<Int64>(Func<Int64, Nullable<Decimal>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMin<Int64>(Func<Int64, 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<Int64>(Func<Int64, Nullable<Double>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMin<Int64>(Func<Int64, Int32>)Overloaded. Invokes a transform function on each element of a sequence and returns the minimum Int32 value. (Defined by Enumerable.)
Public Extension MethodMin<Int64>(Func<Int64, 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<Int64>(Func<Int64, Int64>)Overloaded. Invokes a transform function on each element of a sequence and returns the minimum Int64 value. (Defined by Enumerable.)
Public Extension MethodMin<Int64>(Func<Int64, 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<Int64>(Func<Int64, Single>)Overloaded. Invokes a transform function on each element of a sequence and returns the minimum Single value. (Defined by Enumerable.)
Public Extension MethodMin<Int64>(Func<Int64, 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<Int64>(Func<Int64, Double>)Overloaded. Invokes a transform function on each element of a sequence and returns the minimum Double value. (Defined by Enumerable.)
Public Extension MethodMin<Int64>(Func<Int64, Decimal>)Overloaded. Invokes a transform function on each element of a sequence and returns the minimum Decimal value. (Defined by Enumerable.)
Public Extension MethodMin<Int64>(Func<Int64, Decimal>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMin<Int64>(Func<Int64, Double>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMin<Int64>(Func<Int64, Int32>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMin<Int64>(Func<Int64, Int64>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMin<Int64>(Func<Int64, Nullable<Int32>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMin<Int64>(Func<Int64, Nullable<Int64>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMin<Int64>(Func<Int64, Nullable<Single>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMin<Int64>(Func<Int64, Single>)Overloaded. (Defined by Enumerable.)
Public Extension MethodMin<Int64, TResult>(Func<Int64, 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<Int64, TResult>(Func<Int64, 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<Int64, TKey>(Func<Int64, TKey>)Overloaded. Sorts the elements of a sequence in ascending order according to a key. (Defined by Enumerable.)
Public Extension MethodOrderBy<Int64, TKey>(Func<Int64, TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodOrderBy<Int64, TKey>(Func<Int64, TKey>, IComparer<TKey>)Overloaded. Sorts the elements of a sequence in ascending order by using a specified comparer. (Defined by Enumerable.)
Public Extension MethodOrderBy<Int64, TKey>(Func<Int64, TKey>, IComparer<TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodOrderByDescending<Int64, TKey>(Func<Int64, TKey>)Overloaded. Sorts the elements of a sequence in descending order according to a key. (Defined by Enumerable.)
Public Extension MethodOrderByDescending<Int64, TKey>(Func<Int64, TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodOrderByDescending<Int64, TKey>(Func<Int64, TKey>, IComparer<TKey>)Overloaded. Sorts the elements of a sequence in descending order by using a specified comparer. (Defined by Enumerable.)
Public Extension MethodOrderByDescending<Int64, TKey>(Func<Int64, TKey>, IComparer<TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodReverse<Int64>()Overloaded. Inverts the order of the elements in a sequence. (Defined by Enumerable.)
Public Extension MethodReverse<Int64>()Overloaded. (Defined by Enumerable.)
Public Extension MethodSelect<Int64, TResult>(Func<Int64, TResult>)Overloaded. Projects each element of a sequence into a new form. (Defined by Enumerable.)
Public Extension MethodSelect<Int64, TResult>(Func<Int64, 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<Int64, TResult>(Func<Int64, TResult>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSelect<Int64, TResult>(Func<Int64, Int32, TResult>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSelectMany<Int64, TResult>(Func<Int64, 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<Int64, TResult>(Func<Int64, 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<Int64, TResult>(Func<Int64, IEnumerable<TResult>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSelectMany<Int64, TResult>(Func<Int64, Int32, IEnumerable<TResult>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSelectMany<Int64, TCollection, TResult>(Func<Int64, Int32, IEnumerable<TCollection>>, Func<Int64, 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<Int64, TCollection, TResult>(Func<Int64, IEnumerable<TCollection>>, Func<Int64, 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<Int64, TCollection, TResult>(Func<Int64, IEnumerable<TCollection>>, Func<Int64, TCollection, TResult>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSelectMany<Int64, TCollection, TResult>(Func<Int64, Int32, IEnumerable<TCollection>>, Func<Int64, TCollection, TResult>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSequenceEqual<Int64>(IEnumerable<Int64>)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<Int64>(IEnumerable<Int64>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSequenceEqual<Int64>(IEnumerable<Int64>, IEqualityComparer<Int64>)Overloaded. Determines whether two sequences are equal by comparing their elements by using a specified IEqualityComparer<T>. (Defined by Enumerable.)
Public Extension MethodSequenceEqual<Int64>(IEnumerable<Int64>, IEqualityComparer<Int64>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSingle<Int64>()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<Int64>()Overloaded. (Defined by Enumerable.)
Public Extension MethodSingle<Int64>(Func<Int64, 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<Int64>(Func<Int64, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSingleOrDefault<Int64>()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<Int64>()Overloaded. (Defined by Enumerable.)
Public Extension MethodSingleOrDefault<Int64>(Func<Int64, 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<Int64>(Func<Int64, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSkip<Int64>(Int32)Overloaded. Bypasses a specified number of elements in a sequence and then returns the remaining elements. (Defined by Enumerable.)
Public Extension MethodSkip<Int64>(Int32)Overloaded. (Defined by Enumerable.)
Public Extension MethodSkipWhile<Int64>(Func<Int64, 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<Int64>(Func<Int64, 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<Int64>(Func<Int64, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSkipWhile<Int64>(Func<Int64, Int32, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSum()Overloaded. Computes the sum of a sequence of Int64 values. (Defined by Enumerable.)
Public Extension MethodSum()Overloaded. (Defined by Enumerable.)
Public Extension MethodSum<Int64>(Func<Int64, 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<Int64>(Func<Int64, Nullable<Decimal>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSum<Int64>(Func<Int64, 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<Int64>(Func<Int64, Nullable<Double>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSum<Int64>(Func<Int64, 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<Int64>(Func<Int64, 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<Int64>(Func<Int64, 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<Int64>(Func<Int64, 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<Int64>(Func<Int64, 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<Int64>(Func<Int64, 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<Int64>(Func<Int64, 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<Int64>(Func<Int64, 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<Int64>(Func<Int64, Decimal>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSum<Int64>(Func<Int64, Double>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSum<Int64>(Func<Int64, Int32>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSum<Int64>(Func<Int64, Int64>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSum<Int64>(Func<Int64, Nullable<Int32>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSum<Int64>(Func<Int64, Nullable<Int64>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSum<Int64>(Func<Int64, Nullable<Single>>)Overloaded. (Defined by Enumerable.)
Public Extension MethodSum<Int64>(Func<Int64, Single>)Overloaded. (Defined by Enumerable.)
Public Extension MethodTake<Int64>(Int32)Overloaded. Returns a specified number of contiguous elements from the start of a sequence. (Defined by Enumerable.)
Public Extension MethodTake<Int64>(Int32)Overloaded. (Defined by Enumerable.)
Public Extension MethodTakeWhile<Int64>(Func<Int64, Boolean>)Overloaded. Returns elements from a sequence as long as a specified condition is true. (Defined by Enumerable.)
Public Extension MethodTakeWhile<Int64>(Func<Int64, 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<Int64>(Func<Int64, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodTakeWhile<Int64>(Func<Int64, Int32, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodToArray<Int64>()Overloaded. Creates an array from a IEnumerable<T>. (Defined by Enumerable.)
Public Extension MethodToArray<Int64>()Overloaded. (Defined by Enumerable.)
Public Extension MethodToDictionary<Int64, TKey>(Func<Int64, TKey>)Overloaded. Creates a Dictionary<TKey, TValue> from an IEnumerable<T> according to a specified key selector function. (Defined by Enumerable.)
Public Extension MethodToDictionary<Int64, TKey>(Func<Int64, TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodToDictionary<Int64, TKey>(Func<Int64, 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<Int64, TKey>(Func<Int64, TKey>, IEqualityComparer<TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodToDictionary<Int64, TKey, TElement>(Func<Int64, TKey>, Func<Int64, 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<Int64, TKey, TElement>(Func<Int64, TKey>, Func<Int64, TElement>)Overloaded. (Defined by Enumerable.)
Public Extension MethodToDictionary<Int64, TKey, TElement>(Func<Int64, TKey>, Func<Int64, 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<Int64, TKey, TElement>(Func<Int64, TKey>, Func<Int64, TElement>, IEqualityComparer<TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodToList<Int64>()Overloaded. Creates a List<T> from an IEnumerable<T>. (Defined by Enumerable.)
Public Extension MethodToList<Int64>()Overloaded. (Defined by Enumerable.)
Public Extension MethodToLookup<Int64, TKey>(Func<Int64, TKey>)Overloaded. Creates a Lookup<TKey, TElement> from an IEnumerable<T> according to a specified key selector function. (Defined by Enumerable.)
Public Extension MethodToLookup<Int64, TKey>(Func<Int64, TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodToLookup<Int64, TKey>(Func<Int64, 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<Int64, TKey>(Func<Int64, TKey>, IEqualityComparer<TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodToLookup<Int64, TKey, TElement>(Func<Int64, TKey>, Func<Int64, 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<Int64, TKey, TElement>(Func<Int64, TKey>, Func<Int64, TElement>)Overloaded. (Defined by Enumerable.)
Public Extension MethodToLookup<Int64, TKey, TElement>(Func<Int64, TKey>, Func<Int64, 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<Int64, TKey, TElement>(Func<Int64, TKey>, Func<Int64, TElement>, IEqualityComparer<TKey>)Overloaded. (Defined by Enumerable.)
Public Extension MethodUnion<Int64>(IEnumerable<Int64>)Overloaded. Produces the set union of two sequences by using the default equality comparer. (Defined by Enumerable.)
Public Extension MethodUnion<Int64>(IEnumerable<Int64>)Overloaded. (Defined by Enumerable.)
Public Extension MethodUnion<Int64>(IEnumerable<Int64>, IEqualityComparer<Int64>)Overloaded. Produces the set union of two sequences by using a specified IEqualityComparer<T>. (Defined by Enumerable.)
Public Extension MethodUnion<Int64>(IEnumerable<Int64>, IEqualityComparer<Int64>)Overloaded. (Defined by Enumerable.)
Public Extension MethodWhere<Int64>(Func<Int64, Boolean>)Overloaded. Filters a sequence of values based on a predicate. (Defined by Enumerable.)
Public Extension MethodWhere<Int64>(Func<Int64, 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<Int64>(Func<Int64, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodWhere<Int64>(Func<Int64, Int32, Boolean>)Overloaded. (Defined by Enumerable.)
Public Extension MethodZip<Int64, TSecond, TResult>(IEnumerable<TSecond>, Func<Int64, 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<Int64, TSecond, TResult>(IEnumerable<TSecond>, Func<Int64, TSecond, TResult>)Overloaded. (Defined by Enumerable.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIEnumerable.GetEnumeratorReturns an enumerator that can iterate through the ReservationCollection. This method cannot be inherited.
Top

This class represents a set of reservation areas that are made in a record sequence. Adding items to the collection allocates new reservations. Removing items from the collection frees those reservations.

An application reserves space in the log when it has data that is to be written to the log in the future, but cannot write it immediately. Reservations provide a guarantee that the data can be written to the log when the data is available to be written. When using logs, applications often reserve one or more log records in a marshalling area. You must reserve records prior to appending them.

Reservations can be used to guarantee that an operation can be completed before the data is committed; otherwise, the changes are rolled back. It can also be used to record an "undo action" in the log. During a rollback operation, a transactional resource manager (RM) must be able to recover its state if the RM is interrupted during the rollback operation. By using a reservation area, an RM can reserve space in a log before it is used.

The ReserveAndAppend method can either reserve space or append data, or both, depending on the parameters that are specified when making the call. As work progresses in a transaction, an application can append the undo information and reserve space for compensation records. During a rollback operation, compensation records that are created indicate what has been undone on the disk. The records are appended using space that has been previously reserved. This guarantees that an RM does not run out of log space, which is a fatal condition, while performing a rollback operation. If a log fills up during a transaction, an application can safely roll back a transaction without corrupting durable data.

CLFS is an ARIES-compliant logging system, meant for write-ahead logging. In write-ahead logging, an application writes an undo record before it performs the operation, reserving the amount of space it takes in the log to write a compensating record, which may be used during rollback. Later, the reserved space is used when the compensation record is actually written.

Applications can either reserve or access long space at any given time (they are mutually exclusive operations). After a commit record is written to the log, an application can free up the reservations for the compensation records. This action can be done by calling either the FreeReservation or ReserveAndAppend method. Calling the ReserveAndAppend method guarantees that the operation is atomic, while calling the FreeReservation method does not.

When you free records, you must free the same records that you reserved together in a previous call to the ReserveAndAppend method.

NoteNote

Your implementation of IRecordSequence must implement the MakeReservation and FreeReservation methods to perform the actual reservation allocation and deallocation. In addition, your implementation must also call ReservationFreed when a record is written into a reserved space.

Reservations can be performed in two ways as shown in the following examples. You can adopt the practices in the samples for robust processing. Notice that this task can only be performed when using the CLFS-based LogRecordSequence class.

//Using the ReserveAndAppend Method
ReservationCollection reservations = recordSequence.CreateReservationCollection();
long[] lengthOfUndoRecords = new long[] { 1000 };
recordSequence.ReserveAndAppend(recordData,
                                                     userSqn,
                                                     previousSqn,
                                                     RecordSequenceAppendOptions.None,
                                                     reservations,
                                                     lengthOfUndoRecords);
recordSequence.Append(undoRecordData,    // If necessary …
                                    userSqn,
                                    previousSqn,
                                    RecordSequenceAppendOptions.ForceFlush,
                                    reservations);

// Using the Manual Approach
ReservationCollection reservations = recordSequence.CreateReservationCollection();
reservations.Add(lengthOfUndoRecord);
try
{
   recordSequence.Append(recordData, userSqn, previousSqn, RecordAppendOptions.None);
}
catch (Exception)
{
   reservations.Remove(lengthOfUndoRecord);
   throw;
}

recordSequence.Append(undoRecordData, userSqn, previousSqn, RecordAppendOptions.ForceFlush, reservations);

.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