1
/* ----------------------------------------------------------------------------
2
* This file was automatically generated by SWIG (http://www.swig.org).
5
* Do not make changes to this file unless you know what you are doing--modify
6
* the SWIG interface file instead.
7
* ----------------------------------------------------------------------------- */
12
public class Session : IDisposable {
13
private IntPtr swigCPtr;
14
protected bool swigCMemOwn;
16
internal Session(IntPtr cPtr, bool cMemoryOwn) {
17
swigCMemOwn = cMemoryOwn;
25
public virtual void Dispose() {
26
if(swigCPtr != IntPtr.Zero && swigCMemOwn) {
28
lassoPINVOKE.delete_Session(swigCPtr);
30
swigCPtr = IntPtr.Zero;
31
GC.SuppressFinalize(this);
34
internal static IntPtr getCPtr(Session obj) {
35
return (obj == null) ? IntPtr.Zero : obj.swigCPtr;
40
return lassoPINVOKE.get_Session_isDirty(swigCPtr);
44
public Session() : this(lassoPINVOKE.new_Session(), true) {
47
public static Session newFromDump(string dump) {
48
IntPtr cPtr = lassoPINVOKE.Session_newFromDump(dump);
49
return (cPtr == IntPtr.Zero) ? null : new Session(cPtr, true);
52
public string dump() {
53
return lassoPINVOKE.Session_dump(swigCPtr);
56
public string getAuthenticationMethod(string remoteProviderId) {
57
return lassoPINVOKE.Session_getAuthenticationMethod(swigCPtr, remoteProviderId);