private BasicAuthEventArgs GetArgsFromAuthResponse(HttpStatusCode statusCode, string statusDescription, string authResult) { Schema.Identity id = null; //parse the result id = ParseIdentityV1Response(authResult); //create and return args containing the result return(new BasicAuthEventArgs(statusCode, statusDescription, id)); }
private Schema.Identity ParseIdentityV1Response(string xmlData) { Schema.Identity identity = null; if (xmlData != null && xmlData.Length > 0) { try { //deserialize the xml into our FamilySearch object identity = new Schema.Identity(); identity = (Schema.Identity)XmlSerlializeHelper.Load(identity, new System.IO.StringReader(xmlData)); } catch (System.Exception e) { throw new Exception(e.Message); } } return(identity); }
private Schema.Identity ParseIdentityV1Response(string xmlData) { Schema.Identity identity = null; if (xmlData != null && xmlData.Length > 0) { try { //deserialize the xml into our FamilySearch object identity = new Schema.Identity(); identity = (Schema.Identity)XmlSerlializeHelper.Load(identity, new System.IO.StringReader(xmlData)); } catch (System.Exception e) { throw new Exception(e.Message); } } return identity; }
public BasicAuthEventArgs(HttpStatusCode statusCode, string statusDescription, Schema.Identity result) : base(null, false, null, statusCode, statusDescription) { this.Result = result; }
public BasicAuthEventArgs(Exception error, bool cancelled, object userState, HttpStatusCode statusCode, string statusDescription, Schema.Identity result) : base(error, cancelled, userState, statusCode, statusDescription) { this.Result = result; }