Ejemplo n.º 1
0
 public OscCommandReceiver(ICommandService commandService, IOscService oscService)
 {
     //We only currently work with CommandServiceBase since there's no other way to
     //  get the registered CommandInfo objects. Maybe create an ICommandInfoProvider?
     m_commandService = (CommandServiceBase)commandService;
     m_oscService = oscService;
 }
 public OscCommandReceiver(ICommandService commandService, IOscService oscService)
 {
     //We only currently work with CommandServiceBase since there's no other way to
     //  get the registered CommandInfo objects. Maybe create an ICommandInfoProvider?
     m_commandService = (CommandServiceBase)commandService;
     m_oscService     = oscService;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Sends a single OSC message to each destination endpoint, asynchronously</summary>
 /// <param name="service">IOscService</param>
 /// <param name="oscAddress">The OSC address to which the data will be assigned to</param>
 /// <param name="data">The data object or "value" to set the OSC address to</param>
 public static void Send(this IOscService service, string oscAddress, object data)
 {
     service.Send(new[] { new Tuple <string, object>(oscAddress, data) });
 }