Beispiel #1
0
 void InvokeService()
 {
     var selectedTables = _dataSource.Where(x => x.IsSelected).Select(x => x.ParameterValue).ToArray();
     EtlServiceClient client = new EtlServiceClient();
     var req = new EtlServiceRequest();
     req.ServiceName = "Peraport ETL Service";
     req.ServiceParameter = new Dictionary<string, object>();
     req.ServiceParameter.Add("Erdat", dateTimePicker1.Value.ToString("yyyy-MM-dd"));
     req.ServiceParameter.Add("Tables", string.Join(",", selectedTables));
     req.ServiceParameter.Add("Insert", checkBox2.Checked);
     client.StartChildService(req);
 }
Beispiel #2
0
 static void Main(string[] args)
 {
     Application.EnableVisualStyles();
     Form1 f = new Form1();
     Application.Run(f);
     return;
     Console.ReadKey();
     EtlServiceClient client = new EtlServiceClient();
     var req = new EtlServiceRequest();
     req.ServiceName = "Peraport ETL Service";
     req.ServiceParameter = new Dictionary<string, object>();
     req.ServiceParameter.Add("Erdat", "2016-02-03");
     client.StartChildService(req); 
 }