C# Класс Org.IdentityConnectors.Framework.Impl.Api.MethodTimeoutProxy

General-purpose timeout proxy for providing timeouts on all methods on the underlying object. Currently just used for APIOperations, but could wrap any object. NOTE: this is not used for search because search needs timeout on an element by element basis. Moreover, it would be unsafe for search since the thread could continue to return elements after it has timed out and we need to guarantee that not happen.
Наследование: InvocationHandler
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Invoke ( object proxy, MethodInfo method, Object args ) : Object
MethodTimeoutProxy ( object target, int timeoutMillis ) : System

Create a new MethodTimeoutProxy.

Описание методов

Invoke() публичный Метод

public Invoke ( object proxy, MethodInfo method, Object args ) : Object
proxy object
method System.Reflection.MethodInfo
args Object
Результат Object

MethodTimeoutProxy() публичный Метод

Create a new MethodTimeoutProxy.
public MethodTimeoutProxy ( object target, int timeoutMillis ) : System
target object /// The object we are wrapping
timeoutMillis int
Результат System