public async Task PostTrailActivity(TrailResponse response, string action)
        {
            TrailDomain trail;

            trail = new TrailDomain("Redemption", "Redemption Microservice", action, response, DateTime.UtcNow);
            //ensure you get the path to the microservice
            await ClientConnection <TrailDomain> .CreateTrailAsync(trail,
                                                                   string.Format("http://172.20.20.127:9000/voucherz/audittrails/{0}/{1}/{2}/{3}/{4}/{5}",
                                                                                 "Audit Trail", "Redemption Microservice", action, response._code, response._description, response._error));
        }
示例#2
0
        public RoutesView()
        {
            InitializeComponent();

            TrailResponse trailResponse = new TrailResponse();

            UserResponse userResponse = new UserResponse();
            User         currentUser  = userResponse.UserEmail(Application.Current.Properties["email"].ToString());

            List <Trail> trails = trailResponse.AllTrailsMapped(currentUser.Id);

            ActivitiesList.ItemsSource = trails;
        }