Silverlight webservice call method direcly

HnM

New Member
\[code\]var lockClient = new ServiceReference1.LockSoapClient();lockClient.AcquireLockAsync();bool status=true;lockClient.AcquireLockCompleted += (s, e1) =>{ status = e1.Result;};sendStat(status);\[/code\]I want to pass the the \[code\]boolean true/false\[/code\] that i get from \[code\]e.Result\[/code\] directly in sendStat() method. e.g. \[code\]sendStat(e1.Result)\[/code\] I dont want to call this method inside the \[code\]lockClient.AcquireLockCompleted\[/code\] section. How do I do it?real example\[code\]Brush brush = GetPolygonFill(vectorPolygon, false, Settings.LightSourcePosition, adjust);\[/code\]ThisSettings.LightSourcePositionportion need to come from webservice
 
Back
Top