In my webservice (WCF) i have this function
[OperationContract]
public ChooseViewData GetNcs(FilterArgument filter, int dossiersId, int usersId,
string token)
{
SessionInfo info = Tokens.CheckToken(usersId, token);
if (info.HasError)
{
//return null;
}
}
When i'm calling this function in my silverlight application, i want to know if there was an error occurred.
void client_GetNcsCompleted(object sender, GetNcsCompletedEventArgs e)
{
if (e.Error == null)
{
}
}
My question is, how i can i fill the e.error? when the login is not succesful in my service, i want to throw an exception..