Επεξεργασία

Κοινή χρήση μέσω


AspNetMemoryMonitor Class

Definition

ASP.NET default implementation of memory monitor.

public ref class AspNetMemoryMonitor sealed : IDisposable, IObservable<System::Web::Hosting::LowPhysicalMemoryInfo ^>, IObservable<System::Web::Hosting::RecycleLimitInfo ^>, System::Web::Hosting::IApplicationMonitor
public sealed class AspNetMemoryMonitor : IDisposable, IObservable<System.Web.Hosting.LowPhysicalMemoryInfo>, IObservable<System.Web.Hosting.RecycleLimitInfo>, System.Web.Hosting.IApplicationMonitor
type AspNetMemoryMonitor = class
    interface IApplicationMonitor
    interface IDisposable
    interface IObservable<RecycleLimitInfo>
    interface IObservable<LowPhysicalMemoryInfo>
Public NotInheritable Class AspNetMemoryMonitor
Implements IApplicationMonitor, IDisposable, IObservable(Of LowPhysicalMemoryInfo), IObservable(Of RecycleLimitInfo)
Inheritance
AspNetMemoryMonitor
Implements

Properties

DefaultLowPhysicalMemoryObserver

Gets or sets the default low-memory observer. Setting this property unsubscribes the 'default' observer that was there before. There can only be one 'default.' To provide additional observers, use the Subscribe method.

DefaultRecycleLimitObserver

Gets or sets the default recycle limit observer. Setting this property unsubscribes the 'default' observer that was there before. There can only be one 'default.' To provide additional observers, use the Subscribe method.

Methods

Dispose()

Releases all resources used by the memory monitor.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Start()

Start monitoring and firing notifications.

Stop()

Stop monitoring and firing notifications.

Subscribe(IObserver<LowPhysicalMemoryInfo>)

Subscribes a low-memory observer in addition to the default low-memory observer.

Subscribe(IObserver<RecycleLimitInfo>)

Subscribes a recycle limit observer in addition to the default recycle limit observer.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to