コード例 #1
0
        public virtual IEnumerator <ITask> ReplaceHandler(Replace replace)
        {
            _state = replace.Body;
            replace.ResponsePort.Post(DefaultReplaceResponseType.Instance);

            SendNotification(_submgr, replace);
            yield break;
        }
コード例 #2
0
        /// <summary>
        /// Service Start
        /// </summary>
        protected override void Start()
        {
            if (_state == null)
            {
                _state = new XInputGamepadState();
            }
            base.Start();

            // start the timer
            Spawn(DateTime.Now, TimerHandler);
        }