コード例 #1
0
        public GetBtBasePatentListResult GetBtBasePatentList(GetBtBasePatentListArgument arg)
        {
            var result = new GetBtBasePatentListResult();
            var query  = new ProtectionDocList.Query
            {
                Result   = result,
                Argument = arg
            };

            _mediator.Send(query).Wait();
            return(result);
        }
コード例 #2
0
        public void GetProtectionDocs(GetBtBasePatentListArgument argument, GetBtBasePatentListResult result)
        {
            if (!argument.DateBegin.HasValue)
            {
                throw new ArgumentNullException(nameof(argument.DateBegin));
            }

            if (!argument.DateEnd.HasValue)
            {
                throw new ArgumentNullException(nameof(argument.DateEnd));
            }

            result.List = GetBtBasePatents(argument);
        }