AspNetMemoryMonitor.Subscribe AspNetMemoryMonitor.Subscribe AspNetMemoryMonitor.Subscribe AspNetMemoryMonitor.Subscribe Method

定義

訂閱除了預設觀察者以外的觀察器。Subscribes an observer in addition to the default observer.

多載

Subscribe(IObserver<LowPhysicalMemoryInfo>) Subscribe(IObserver<LowPhysicalMemoryInfo>) Subscribe(IObserver<LowPhysicalMemoryInfo>) Subscribe(IObserver<LowPhysicalMemoryInfo>)

訂閱除了預設記憶體不足觀察者以外的記憶體不足觀察器。Subscribes a low-memory observer in addition to the default low-memory observer.

Subscribe(IObserver<RecycleLimitInfo>) Subscribe(IObserver<RecycleLimitInfo>) Subscribe(IObserver<RecycleLimitInfo>) Subscribe(IObserver<RecycleLimitInfo>)

訂閱除了預設回收限制觀察者以外的回收限制觀察器。Subscribes a recycle limit observer in addition to the default recycle limit observer.

Subscribe(IObserver<LowPhysicalMemoryInfo>) Subscribe(IObserver<LowPhysicalMemoryInfo>) Subscribe(IObserver<LowPhysicalMemoryInfo>) Subscribe(IObserver<LowPhysicalMemoryInfo>)

訂閱除了預設記憶體不足觀察者以外的記憶體不足觀察器。Subscribes a low-memory observer in addition to the default low-memory observer.

public:
 virtual IDisposable ^ Subscribe(IObserver<System::Web::Hosting::LowPhysicalMemoryInfo ^> ^ observer);
public IDisposable Subscribe (IObserver<System.Web.Hosting.LowPhysicalMemoryInfo> observer);
abstract member Subscribe : IObserver<System.Web.Hosting.LowPhysicalMemoryInfo> -> IDisposable
override this.Subscribe : IObserver<System.Web.Hosting.LowPhysicalMemoryInfo> -> IDisposable
Public Function Subscribe (observer As IObserver(Of LowPhysicalMemoryInfo)) As IDisposable

參數

observer
IObserver<LowPhysicalMemoryInfo>

要訂閱的記憶體不足觀察者。The low-memory observer to subscribe to.

傳回

實作

Subscribe(IObserver<RecycleLimitInfo>) Subscribe(IObserver<RecycleLimitInfo>) Subscribe(IObserver<RecycleLimitInfo>) Subscribe(IObserver<RecycleLimitInfo>)

訂閱除了預設回收限制觀察者以外的回收限制觀察器。Subscribes a recycle limit observer in addition to the default recycle limit observer.

public:
 virtual IDisposable ^ Subscribe(IObserver<System::Web::Hosting::RecycleLimitInfo ^> ^ observer);
public IDisposable Subscribe (IObserver<System.Web.Hosting.RecycleLimitInfo> observer);
abstract member Subscribe : IObserver<System.Web.Hosting.RecycleLimitInfo> -> IDisposable
override this.Subscribe : IObserver<System.Web.Hosting.RecycleLimitInfo> -> IDisposable
Public Function Subscribe (observer As IObserver(Of RecycleLimitInfo)) As IDisposable

參數

observer
IObserver<RecycleLimitInfo>

要訂閱的回收限制觀察者。The recycle limit observer to subscribe to.

傳回

實作

適用於