Example #1
0
        public FinanceResponse ExecTask(InterfaceRequest request)
        {
            if (request == null)
            {
                throw new FinanceException(FinanceResult.NULL);
            }
            var result = service.ExecTask((ExecTaskType)request.TaskType, request.ProcName, request.Filter);

            return(new InterfaceResponse {
                Content = result
            });
        }
Example #2
0
        static void InterfaceRequestSample()
        {
            int    sequence = (int)ServiceName.UserService;
            string url      = (string)InterfaceParameter.Instance.GetGlobalParameters()["POS"];

            string[]       p     = new string[] { url, string.Empty };
            HttpParameters query = InterfaceParameter.Instance.GetHttpParameters(sequence, p);

            InterfaceRequest request = new InterfaceRequest();

            request.Sequence = sequence;
            request.Parameter.Add(query);

            InterfaceResult <UserEntity> result = InterfaceHandler.Instance.DownEntities <UserEntity>(request);

            if (result.Status == Status.Failed)
            {
                InterfaceHandler.Instance.Throw();
            }
        }
 public Task <Unit> Handle(InterfaceRequest request, CancellationToken cancellationToken) => throw new NotImplementedException();