Appropriately ending a RPC call with Broker

Hello,
I am generating a C# client using the EntireX workbench (Eclipse).
Below is an example snippet where I am calling a simple test subprogram.

[color=blue]Broker brk = new Broker(hostmane);
Service srv = new Service(brk);
srv.ServerAddress = srvName;

SYSRPC rpcCall = new SYSRPC(srv);

// Setup parameters for the call
StringBuilder p1 = new StringBuilder(“test”);
decimal p2 = 0.0;
int p3 = 0;
float p4 = 0.0;

//Make RPC Call
rpcCall.TESTS1(ref p1, ref p2, ref p3, ref p4);[/color]

This call works fine and returns the data as expected.
What I am wondering is: what kind of clean up should I make sure to do when I have finished my RPC call? I see there is a Logoff() method availble. However I am never explictly calling the LogOn() method, so should I need to call the LogOff() method?

Thank you all very much for your help.

logon() and logoff() are important when Security is being used. An implicit logon is done on the first call if you don’t do an explicit one (the EntireX Broker can be configured to require an explicit logon).

The logoff is optional and the timeout settings will govern when EntireX cleans up the resources assigned to your user connection.

I would recommend using an explicit logoff when you are finished as a normal practice. This ensures that the Broker is able to release your resources as soon as you are done with them. Obviously there are conditions under which you wouldn’t - continuing calls (a repeated loop, to retrieve more information, for example), conversations, etc.

Excellent, thank you for the advise.