/// <summary> /// Creates the carrier for the timer event. /// </summary> protected void CreateEventCarrier() { ISemanticTypeStruct protocol = rsys.SemanticTypeSystem.GetSemanticTypeStruct("TimerEvent"); dynamic signal = rsys.SemanticTypeSystem.Create("TimerEvent"); signal.EventName = EventName; signal.EventDateTime = (DateTime)LastEventTime; rsys.CreateCarrier(receptor, protocol, signal); }
protected void CreateCarrier(string protocol, Action <dynamic> initializeSignal, bool emitSubElements = true) { ISemanticTypeStruct outprotocol = rsys.SemanticTypeSystem.GetSemanticTypeStruct(protocol); dynamic outsignal = rsys.SemanticTypeSystem.Create(protocol); initializeSignal(outsignal); rsys.CreateCarrier(this, outprotocol, outsignal, null, emitSubElements); }