DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Static Public Member Functions | Static Public Attributes | Properties | List of all members
Deveel.Data.Protocol.ConnectionEndPoint Class Reference

Public Member Functions

 ConnectionEndPoint (string protocol, string address)
 

Static Public Member Functions

static ConnectionEndPoint Parse (string s)
 

Static Public Attributes

static readonly ConnectionEndPoint Embedded = new ConnectionEndPoint(KnownConnectionProtocols.Local, "%")
 

Properties

string Protocol [get, private set]
 
string Address [get, private set]
 

Detailed Description

Definition at line 20 of file ConnectionEndPoint.cs.

Constructor & Destructor Documentation

Deveel.Data.Protocol.ConnectionEndPoint.ConnectionEndPoint ( string  protocol,
string  address 
)
inline

Definition at line 21 of file ConnectionEndPoint.cs.

21  {
22  if (String.IsNullOrEmpty(protocol))
23  throw new ArgumentNullException("protocol");
24  if (String.IsNullOrEmpty(address))
25  throw new ArgumentNullException("address");
26 
27  Address = address;
28  Protocol = protocol;
29  }
A long string in the system.

Member Function Documentation

static ConnectionEndPoint Deveel.Data.Protocol.ConnectionEndPoint.Parse ( string  s)
inlinestatic

Definition at line 37 of file ConnectionEndPoint.cs.

37  {
38  if (String.IsNullOrEmpty(s))
39  throw new ArgumentNullException("s");
40 
41  var index = s.IndexOf(':');
42  if (index == -1)
43  throw new FormatException();
44 
45  var protocol = s.Substring(0, index).Trim();
46  var address = s.Substring(index + 1).Trim();
47 
48  if (String.IsNullOrEmpty(protocol))
49  throw new FormatException();
50 
51  if (String.IsNullOrEmpty(address))
52  throw new FormatException();
53 
54  return new ConnectionEndPoint(protocol, address);
55  }
A long string in the system.
ConnectionEndPoint(string protocol, string address)

Member Data Documentation

readonly ConnectionEndPoint Deveel.Data.Protocol.ConnectionEndPoint.Embedded = new ConnectionEndPoint(KnownConnectionProtocols.Local, "%")
static

Definition at line 35 of file ConnectionEndPoint.cs.

Property Documentation

string Deveel.Data.Protocol.ConnectionEndPoint.Address
getprivate set

Definition at line 33 of file ConnectionEndPoint.cs.

string Deveel.Data.Protocol.ConnectionEndPoint.Protocol
getprivate set

Definition at line 31 of file ConnectionEndPoint.cs.


The documentation for this class was generated from the following file: