Exemple #1
0
 public IEnumerator <ITask> ToUpperHandler(ToUpper toUpper)
 {
     toUpper.ResponsePort.Post(
         ToUpperResponse.FromRequest(toUpper.Body)
         );
     yield break;
 }
        /// <summary>
        /// FromRequest - Perform the Uppercase function
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public static ToUpperResponse FromRequest(ToUpperRequest request)
        {
            ToUpperResponse response = new ToUpperResponse();

            response._upper = request.String.ToUpper(CultureInfo.CurrentUICulture);

            return(response);
        }