IInstanceContextProvider.NotifyIdle(InstanceContextIdleCallback, InstanceContext) Método

Definición

Se le llama cuando el método IsIdle(InstanceContext) devuelve false para permitir que los implementadores proporcionen una devolución de llamada para notificar a WCF la finalización del objeto InstanceContext.Called when the IsIdle(InstanceContext) method returns false to enable implementers to provide a callback to notify WCF when the InstanceContext object is finished.

public:
 void NotifyIdle(System::ServiceModel::Dispatcher::InstanceContextIdleCallback ^ callback, System::ServiceModel::InstanceContext ^ instanceContext);
public void NotifyIdle (System.ServiceModel.Dispatcher.InstanceContextIdleCallback callback, System.ServiceModel.InstanceContext instanceContext);
abstract member NotifyIdle : System.ServiceModel.Dispatcher.InstanceContextIdleCallback * System.ServiceModel.InstanceContext -> unit
Public Sub NotifyIdle (callback As InstanceContextIdleCallback, instanceContext As InstanceContext)

Parámetros

callback
InstanceContextIdleCallback

Objeto InstanceContextIdleCallback que notifica a WCF el momento de cerrar y reciclar el objeto InstanceContext.The InstanceContextIdleCallback object that notifies WCF when the InstanceContext object is to be closed and recycled.

instanceContext
InstanceContext

Objeto InstanceContext actual.The current InstanceContext.

Comentarios

NotifyIdleSe llama al método cuando el IsIdle método vuelve false a permitir que proporcione WCF con un System.ServiceModel.Dispatcher.InstanceContextIdleCallback objeto que se usa para informar al tiempo de ejecución de que InstanceContext ha finalizado su trabajo.The NotifyIdle method is called when the IsIdle method returns false to enable you to provide WCF with a System.ServiceModel.Dispatcher.InstanceContextIdleCallback object that you use to inform the runtime that the InstanceContext has finished its work. Cuando el System.ServiceModel.Dispatcher.InstanceContextIdleCallback objeto notifica al tiempo de ejecución que InstanceContext ha finalizado su trabajo, WCF llama IsIdle una vez más.When the System.ServiceModel.Dispatcher.InstanceContextIdleCallback object notifies the runtime that the InstanceContext has finished its work, WCF calls IsIdle once again. Este ciclo continúa hasta que IsIdle devuelve true, y el contexto se cierra y se recicla.This cycle continues until IsIdle returns true and the context is closed and recycled.

Se aplica a