Ejemplo n.º 1
0
 public IEnumerator <ITask> StartsWithHandler(StartsWith startsWith)
 {
     startsWith.ResponsePort.Post(
         StartsWithResponse.FromRequest(startsWith.Body)
         );
     yield break;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// FromRequest - Performs the Starts With function
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public static StartsWithResponse FromRequest(StartsWithRequest request)
        {
            StartsWithResponse response = new StartsWithResponse();

            response._startsWith = request.String.StartsWith(request.Query);

            return(response);
        }