InstanceContextIdleCallback 委托

定义

表示当 InstanceContext 对象已完成处理时调用的方法。Represents the method that is called when an InstanceContext object has finished processing.

public delegate void InstanceContextIdleCallback(InstanceContext ^ instanceContext);
public delegate void InstanceContextIdleCallback(InstanceContext instanceContext);
type InstanceContextIdleCallback = delegate of InstanceContext -> unit
Public Delegate Sub InstanceContextIdleCallback(instanceContext As InstanceContext)

参数

instanceContext
InstanceContext

完成处理的实例上下文。The instance context that has finished processing.

继承
InstanceContextIdleCallback

注解

使用通知 Windows Communication Foundation (WCF) 运行时InstanceContextIdleCallback对象已完成处理。 InstanceContextIdleCallbackUse an InstanceContextIdleCallback to notify the Windows Communication Foundation (WCF) runtime that an InstanceContextIdleCallback object has finished processing. 当对象通知运行时InstanceContextIdleCallback已完成其工作时, WCF 将再次调用IInstanceContextProvider.IsIdle一次。 InstanceContextIdleCallbackWhen the InstanceContextIdleCallback object notifies the runtime that the InstanceContextIdleCallback has finished its work, WCF calls IInstanceContextProvider.IsIdle once again. 此循环将一直继续,直到 IInstanceContextProvider.IsIdle 返回 true,然后上下文被关闭并回收。This cycle continues until IInstanceContextProvider.IsIdle returns true and the context is closed and recycled.

有关详细信息,请参阅 NotifyIdleFor more information, see NotifyIdle.

扩展方法

GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于