private void Form1_Load(object sender, EventArgs e) { var callback = new MathServiceCallback(); var context = new InstanceContext(callback); _client = new wref.MathServiceClient(context); _client.SignIn(WindowsIdentity.GetCurrent().Name); }