Beispiel #1
0
 public IEnumerator <ITask> IndexOfHandler(IndexOf indexOf)
 {
     indexOf.ResponsePort.Post(
         IndexOfResponse.FromRequest(indexOf.Body)
         );
     yield break;
 }
        /// <summary>
        /// FromRequest - Performs the Index Of function
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public static IndexOfResponse FromRequest(IndexOfRequest request)
        {
            IndexOfResponse response = new IndexOfResponse();

            response._indexOf = request.String.IndexOf(request.Query, request.StartIndex);

            return(response);
        }