Ejemplo n.º 1
0
 public IEnumerator <ITask> JoinHandler(Join join)
 {
     join.ResponsePort.Post(
         JoinResponse.FromRequest(join.Body)
         );
     yield break;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// FromRequest - Performs the Join function
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public static JoinResponse FromRequest(JoinRequest request)
        {
            JoinResponse response = new JoinResponse();

            response._joined = string.Join(request.Separator, request.Strings);

            return(response);
        }