コード例 #1
0
        public void Validate()
        {
            if (string.IsNullOrEmpty(RequestType) || string.IsNullOrEmpty(ResponseType) || string.IsNullOrEmpty(Name))
            {
                //log error
            }
            else
            {
                RequestType  = RequestType.Trim();
                ResponseType = ResponseType.Trim();
                Name         = Name.Trim();
            }

            // validate endpoint
            try
            {
                this.EndpointEntity.Validate();
            }
            catch (Exception)
            {
                //log error
            }
        }