JADE Method Parameter Usage

In the signature of a JADE method, the type of each parameter must be declared along with the Usage value, which can be Usage.Constant, Usage.Input, Usage.IO (combination of input and output), or Usage.Output.

If you do not specify a usage, a default of Usage.Constant is assumed.

The parameter usages are as follows.

The following is an example of an exposed JADE method.

[JadeSoftware.Joob.Client.JoobMethodAttribute("addIntegers")]
public Int32 AddIntegers(Int32 i1, Int32 i2)
{
    using (JadeParam retnParam = new JadeParamInteger(Usage.Output),
                    jadeParam1 = new JadeParamInteger(i1),
                    jadeParam2 = new JadeParamInteger(i2))
    {
        this.SendMessage(_metaModel.addIntegers,
                         retnParam,
                         jadeParam1,
                         jadeParam2);
        return (retnParam as JadeParamInteger).Value;
    }
}