3 namespace MonoTests.SystemWeb.Framework
6 /// Base class for invokers, which can be used on its own when no user callbacks need
7 /// to be executed in the Web context. When a user callback needs to be called, use
8 /// one of the <see cref="BaseInvoker"/> subclasses (the most common is
9 /// <see cref="PageInvoker"/>).
11 /// <seealso cref="PageInvoker"/>
13 public class BaseInvoker
15 bool _invokeDone = false;
17 /// This method is called to activate the invoker. When <see cref="BaseInvoker"/>
18 /// is overriden, the subclasses should call the base class <c>DoInvoke</c>, if they want
19 /// to use the default <see cref="CheckInvokeDone"/> implementation.
21 /// <param name="parameters"></param>
22 public virtual void DoInvoke (params object [] parameters)
28 /// This method returns the default URL specific to the invoker type. By default,
29 /// there is no default URL.
31 /// <returns></returns>
32 public virtual string GetDefaultUrl ()
38 /// Checks whether <c>DoInvoke</c> was called or not. If subclasses do not override this
39 /// method, they have to call <see cref="BaseInvoker.DoInvoke"/> to register the
42 /// <seealso cref="BaseInvoker.DoInvoke"/>
43 public virtual void CheckInvokeDone ()
46 throw new Exception ("Invoker was not activated");