C# Class CmisSync.Lib.Cmis.PersistentNtlmAuthenticationProvider

Persistent ntlm authentication provider.
Inheritance: DotCMIS.Binding.NtlmAuthenticationProvider, IDisposableAuthProvider
Show file Open project: OpenDataSpace/CmisSync

Public Methods

Method Description
DeleteAllCookies ( ) : void

Deletes all cookies.

Dispose ( ) : void

Releases all resource used by the CmisSync.Lib.Cmis.PersistentNtlmAuthenticationProvider object.

Call Dispose when you are finished using the CmisSync.Lib.Cmis.PersistentNtlmAuthenticationProvider. The Dispose method leaves the CmisSync.Lib.Cmis.PersistentNtlmAuthenticationProvider in an unusable state. After calling Dispose, you must release all references to the CmisSync.Lib.Cmis.PersistentNtlmAuthenticationProvider so the garbage collector can reclaim the memory that the CmisSync.Lib.Cmis.PersistentNtlmAuthenticationProvider was occupying.

HandleResponse ( object connection ) : void

Handles the response, if it is a System.Net.HttpWebResponse instance. Takes all cookies of the response and saves them at the local System.Net.CookieContainer.

PersistentNtlmAuthenticationProvider ( ICookieStorage storage, Uri url ) : System

Initializes a new instance of the CmisSync.Lib.Cmis.PersistentNtlmAuthenticationProvider class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Dispose the specified disposing.

Method Details

DeleteAllCookies() public method

Deletes all cookies.
public DeleteAllCookies ( ) : void
return void

Dispose() public method

Releases all resource used by the CmisSync.Lib.Cmis.PersistentNtlmAuthenticationProvider object.
Call Dispose when you are finished using the CmisSync.Lib.Cmis.PersistentNtlmAuthenticationProvider. The Dispose method leaves the CmisSync.Lib.Cmis.PersistentNtlmAuthenticationProvider in an unusable state. After calling Dispose, you must release all references to the CmisSync.Lib.Cmis.PersistentNtlmAuthenticationProvider so the garbage collector can reclaim the memory that the CmisSync.Lib.Cmis.PersistentNtlmAuthenticationProvider was occupying.
public Dispose ( ) : void
return void

Dispose() protected method

Dispose the specified disposing.
protected Dispose ( bool disposing ) : void
disposing bool /// Dispose managed resources if true ///
return void

HandleResponse() public method

Handles the response, if it is a System.Net.HttpWebResponse instance. Takes all cookies of the response and saves them at the local System.Net.CookieContainer.
public HandleResponse ( object connection ) : void
connection object /// should be passed. ///
return void

PersistentNtlmAuthenticationProvider() public method

Initializes a new instance of the CmisSync.Lib.Cmis.PersistentNtlmAuthenticationProvider class.
public PersistentNtlmAuthenticationProvider ( ICookieStorage storage, Uri url ) : System
storage ICookieStorage /// Storage to save the cookies to. ///
url System.Uri /// URL of the cookies. ///
return System