public IEnumerator <ITask> RemoveHandler(Remove remove) { remove.ResponsePort.Post( RemoveResponse.FromRequest(remove.Body) ); yield break; }
/// <summary> /// FromRequest - Performs the Remove function /// </summary> /// <param name="request"></param> /// <returns></returns> public static RemoveResponse FromRequest(RemoveRequest request) { RemoveResponse response = new RemoveResponse(); if (request.Count > 0) { response._removed = request.String.Remove( request.StartIndex, request.Count ); } else { #if URT_MINCLR response._removed = request.String.Remove( request.StartIndex, request.String.Length - request.StartIndex ); #else response._removed = request.String.Remove( request.StartIndex ); #endif } return(response); }