static async Task Main(string[] args) { UserPlantUnitService service = new UserPlantUnitService(); var foo = await service.GetAsync(ConstantsHelper.Token, ConstantsHelper.AppVersion); PlantUnitSampleService service2 = new PlantUnitSampleService(); var bar = await service2.GetAsync(ConstantsHelper.Token, ConstantsHelper.AppVersion, "CFP", "CFP-SEMI"); SampleResultService service3 = new SampleResultService(); var foobar = await service3.GetAsync(ConstantsHelper.Token, ConstantsHelper.AppVersion , " 9244151"); Console.WriteLine("Hello World!"); Console.WriteLine("Press any key for continuing..."); Console.ReadKey(); }
public async void OnNavigatedTo(INavigationParameters parameters) { if (parameters.GetNavigationMode() == NavigationMode.Back) { return; } string plant = ""; string plantunit = ""; PLANTUNIT PLANTUNIT = (parameters["PLANTUNIT"] as PLANTUNIT); plantunit = PLANTUNIT?.PLANT_UNIT; UserPlantUnitDatum UserPlantUnitDatum = (parameters["UserPlantUnitDatum"] as UserPlantUnitDatum); plant = UserPlantUnitDatum?.PLANT; PlantUnitSampleService service2 = new PlantUnitSampleService(); var bar = await service2.GetAsync(ConstantsHelper.Token, ConstantsHelper.AppVersion, plant, plantunit); PlantUnitSample = mapper.Map <PlantUnitSample>(bar); PageName = PLANTUNIT.CHINESE_UNIT_NAME; }