OperationCounter Class

Visual Studio 2010

Provides a container that maintains a count of pending asynchronous operations.

System.Object
  System.Web.Mvc.Async.OperationCounter

Namespace:  System.Web.Mvc.Async
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public sealed class OperationCounter

The OperationCounter type exposes the following members.

  NameDescription
Public methodOperationCounterInitializes a new instance of the OperationCounter class.
Top

  NameDescription
Public propertyCountGets the operation count.
Top

  NameDescription
Public methodDecrement()Reduces the operation count by 1.
Public methodDecrement(Int32)Reduces the operation count by the specified value.
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodIncrement()Increments the operation count by one.
Public methodIncrement(Int32)Increments the operation count by the specified value.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public eventCompletedOccurs when an asynchronous method completes.
Top

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

Community Additions

ADD
Show: