protected override void OnStartup(System.Windows.StartupEventArgs e) { var s1 = new Service1Client(); s1CompositeType d1 = s1.GetData(); var s2 = new Service2Client(); // must do some mapping var d2 = new s2CompositeType { IntVal = d1.IntVal, StrVal = d1.StrVal }; s2.SetData(d2); }
protected override void OnStartup(StartupEventArgs e) { var svcS1 = new Service1Client(); var d = svcS1.GetData(); var svcS2 = new Service2Client(); svcS2.SetData(d); }