示例#1
0
 public IEnumerator <ITask> IsNullOrEmptyHandler(IsNullOrEmpty isNullOrEmpty)
 {
     isNullOrEmpty.ResponsePort.Post(
         IsNullOrEmptyResponse.FromRequest(isNullOrEmpty.Body)
         );
     yield break;
 }
        /// <summary>
        /// FromRequest - Performs the Is Null Or Empty function
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public static IsNullOrEmptyResponse FromRequest(IsNullOrEmptyRequest request)
        {
            IsNullOrEmptyResponse response = new IsNullOrEmptyResponse();

            response._isNullOrEmpty = string.IsNullOrEmpty(request.String);

            return(response);
        }