예제 #1
0
        /// <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);
        }
예제 #2
0
파일: BaseReceptor.cs 프로젝트: babann/HOPE
        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);
        }