public static void PUBLISH_TIME(TPSVCINFO svcinfo) { ByteBuffer message = StringUtils.NewStringBuffer("It is now " + DateTime.Now); try { ATMI.tppost("TIME", message, 0, 0); } catch (TPENOENT) { // EventBroker not running yet (ignored) } finally { ATMI.tpfree(message); } Thread.Sleep(1000); ATMI.tpacall("PUBLISH_TIME", null, 0, ATMI.TPNOREPLY); ATMI.tpreturn(ATMI.TPSUCCESS, 0, null, 0, 0); }