public void Execute(JobContext context) { if (!context.JobDataMap.ContainKey("UserCode")) { log.Error("User code not specified."); } if (!context.JobDataMap.ContainKey("SystemCodes")) { log.Error("User code not specified."); } if (context.JobDataMap.ContainKey("UserCode") && context.JobDataMap.ContainKey("SystemCodes")) { FISService.FISService fisService = new FISService.FISService(); if (context.JobDataMap.ContainKey("SIServiceAddress") && context.JobDataMap.ContainKey("SIServicePort")) { fisService.Url = ServiceURLHelper.ReplaceServiceUrl(fisService.Url, context.JobDataMap.GetStringValue("SIServiceAddress"), context.JobDataMap.GetStringValue("SIServicePort")); } fisService.ExportAsync(context.JobDataMap.GetStringValue("SystemCodes").Split(','), context.JobDataMap.GetStringValue("UserCode")); } //if (!context.JobDataMap.ContainKey("UserCode")) //{ // log.Error("User code not specified."); //} //if (context.JobDataMap.ContainKey("UserCode")) //{ // string userCode = context.JobDataMap.GetStringValue("UserCode"); // FISService.FISService fISService = new FISService.FISService(); // fISService.Export(); //} }
public void Execute(JobContext context) { FISService.FISService fisService = new FISService.FISService(); if (context.JobDataMap.ContainKey("SIServiceAddress") && context.JobDataMap.ContainKey("SIServicePort")) { fisService.Url = ServiceURLHelper.ReplaceServiceUrl(fisService.Url, context.JobDataMap.GetStringValue("SIServiceAddress"), context.JobDataMap.GetStringValue("SIServicePort")); } fisService.UploadFileAsync(); }
public void Execute(JobContext context) { if (!context.JobDataMap.ContainKey("UserCode")) { log.Error("User code not specified."); } if (context.JobDataMap.ContainKey("UserCode")) { FISService.FISService fisService = new FISService.FISService(); if (context.JobDataMap.ContainKey("SIServiceAddress") && context.JobDataMap.ContainKey("SIServicePort")) { fisService.Url = ServiceURLHelper.ReplaceServiceUrl(fisService.Url, context.JobDataMap.GetStringValue("SIServiceAddress"), context.JobDataMap.GetStringValue("SIServicePort")); } fisService.ImportAsync(context.JobDataMap.GetStringValue("UserCode")); } }