Exemplo n.º 1
0
 public IEnumerator <ITask> EndsWithHandler(EndsWith endsWith)
 {
     endsWith.ResponsePort.Post(
         EndsWithResponse.FromRequest(endsWith.Body)
         );
     yield break;
 }
        /// <summary>
        /// FromRequest - Performs the Ends With function
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public static EndsWithResponse FromRequest(EndsWithRequest request)
        {
            EndsWithResponse response = new EndsWithResponse();

#if URT_MINCLR
            response._endsWith = request.String.EndsWith(
                request.Query,
                request.IgnoreCase ?
                StringComparison.CurrentCultureIgnoreCase :
                StringComparison.CurrentCulture
                );
#else
            response._endsWith = request.String.EndsWith(
                request.Query,
                request.IgnoreCase,
                CultureInfo.CurrentUICulture
                );
#endif

            return(response);
        }