C# Class Mite.MiteConfiguration

Configuration for data context
显示文件 Open project: ccellar/mite.net Class Usage Examples

Private Properties

Property Type Description
ValidateUriScheme void

Public Methods

Method Description
MiteConfiguration ( Uri domain, string apiKey ) : System

Initializes a new instance of the MiteConfiguration class.

MiteConfiguration ( Uri domain, string user, string password ) : System

Initializes a new instance of the MiteConfiguration class.

ReadFromConfig ( ) : MiteConfiguration

Reads the configuration from the app.config or web.config.

Private Methods

Method Description
ValidateUriScheme ( Uri uri ) : void

Method Details

MiteConfiguration() public method

Initializes a new instance of the MiteConfiguration class.
public MiteConfiguration ( Uri domain, string apiKey ) : System
domain System.Uri The domain.
apiKey string The API key.
return System

MiteConfiguration() public method

Initializes a new instance of the MiteConfiguration class.
public MiteConfiguration ( Uri domain, string user, string password ) : System
domain System.Uri The domain.
user string The user.
password string The password.
return System

ReadFromConfig() public static method

Reads the configuration from the app.config or web.config.
public static ReadFromConfig ( ) : MiteConfiguration
return MiteConfiguration