Beispiel #1
0
        public async Task <string> StartOndemandReport(string userID, string reportType)
        {
            var client = new ServiceReference.ScheduleServiceClient();

            var p = new Dictionary <string, string> {
                { "userID", userID }, { "reportType", reportType }, { "duration", "250" }
            };

            return(await client.ScheduleJobAsync("ondemandreport", p));
        }
Beispiel #2
0
        public async Task <string> ScheduleWeeklyReport(string userID, string reportType)
        {
            reportType = "You-Got-It-Right!-" + reportType;

            var p = new Dictionary <string, string> {
                { "userID", userID }, { "reportType", reportType }, { "duration", "2350" }
            };

            var client = new ServiceReference.ScheduleServiceClient();

            return(await client.ScheduleJobAsync("weeklyreport", p));
        }