var authSession = this.SessionAs(); var customSession = authSession.ConvertTo ();
var authSession = this.SessionAsThis example converts an IAuthSession object (authSession) to a JSON string (sessionJson). Here, the converted object is of the string type. Package Library: ServiceStack.Client(); var sessionJson = authSession.ConvertTo ();