Is it possible to activate an output in Milestone Corporate

I am trying to find the API code to activate an output on and Axis I/O module. I am using c#/.net. It looks like I would use the RecorderCommandService but I can’t seem to find any examples.

I go it working using:

item _dev;

VideoOS.Platform.Messaging.Message msg = new VideoOS.Platform.Messaging.Message(MessageId.Control.OutputActivate);

EnvironmentManager.Instance.SendMessage(msg, _dev.FQID); //_dev.FQID is the FQID of my output port