/// <summary> /// Service Start /// </summary> protected override void Start() { if (_state == null) { _state = new ServiceTutorial4State(); } base.Start(); }
public IEnumerator <ITask> ReplaceHandler(Replace replace) { _state = replace.Body; #region CODECLIP 04-1 // Echo the Replace message to all subscribers base.SendNotification(_submgrPort, replace); #endregion replace.ResponsePort.Post(DefaultReplaceResponseType.Instance); yield break; }