Merge pull request #26 from jbcooley/master

Update to policy file for 2.0.13 beta 1
Fixed assembly version to the correct value of 2.0.13 beta 1.

Internally the version numbers of the beta are coded with a vlue
starting with 1x.9x where 12.91 is beta1, 12.92 is beta2 to indicate it is close
to the final release 13.0. Incorrectly I used a wrong value.
Replaced SslClientStream with .NET SslStream

This change fixes an issue when connecting to a PostgreSQL database
configured to accept connections only with a valid client certificate.
With Mono's SslClientStream, an encryption error would occur when trying
to connect. WIth .NET's SslStream, the connection can be successfully
opened. The Mono-based callbacks have been marked "Obsolete". The newer
ValidateRemoteCertificateCallback is used automatically if it is
provided.
Bugfix: Boolean constants converted to ETRUE and EFALSE instead of TRUE and FALSE.

Error output of EdmGen:

EdmGen for Microsoft (R) .NET Framework version 4.5
Copyright (C) Microsoft Corporation. All rights reserved.

Loading database information...
error 6003: Fehler beim Ausführen der Befehlsdefinition. Weitere Informationen finden Sie in der internen Ausnahme.
        FEHLER: 42703: Spalte »etrue« existiert nicht

Generation Complete -- 1 errors, 0 warnings
Merge pull request #28 from cody82/master

Boolean constants converted to ETRUE instead of TRUE. 

This fixes a regression caused by https://github.com/magnitudo/Npgsql2/commit/864c2e937dffb8e0159a417edb42324677c1d05b
Fixed strange + sign which appeared in last commit.
Merge pull request #27 from dreamlax/master

Replace Mono SslClientStream with .NET SslStream to fix SSL-related errors

Initial fix of the feature requests: 

[#1000445] Single npgsql.dll
http://pgfoundry.org/tracker/index.php?func=detail&aid=1000445&group_id=1000140&atid=593 

and

[#1005312] Remove dependency toward Mono.Security.dll
http://pgfoundry.org/tracker/index.php?func=detail&aid=1005312&group_id=1000140&atid=593
[#1011346] BUGFIX: Thread synchronization inside GetPooledConnector

Reworked UngetConnector to remove the connector from the Busy queue and add to the Available queue under the same lock.

Thanks Ilya G for the heads up.
Added Visual Studio 2012 project and solution files.
.gitignore goodness.
Save last socket connect exception so it can be rethrown after all attempts have failed, wrapped in NpgsqlException.
Removed try/catch construct around almost entire Open() function as it's not apparently needed anymore.
Re-implemented the exception wrapper, but in a better way.
Reverted back to a single .gitignore file.

Removed /src/.gitignore.
Updated /.gitignore.
Added .editorconfig file

A pretty standard way of specifying project indentation and line
terminators across editors: http://editorconfig.org/

Set to 4 character space indentation, LF line terminator.
Formatting corrections
ConnectionTimeout work

Use the Dns.BeginGetHostName() so we can respect ConnectionTimeout.
Keep track of how much time is left to connect so that multiple timeout-able calls will not cause it to be exceeded.
On timeouts, throw TimeoutException.
Removed ResolveIPHost() as it's called only from one spot.
Added a new dns timeout message to NpgsqlState.resx; not localized.
Format fix
Connect timeout work

< int > Int32.
Rather than giving each socket connect all remaining time, split the remaining time between the remaining ip's.
Clean up

Removed unneeded using System.Diagnostics.
Camel casing.
Merge pull request #30 from glenebob/master

Project/solution files for vs2012, .gitignore updates and changes to connection timeout handling.

Adding project/solution files for VS2012 and .gitignore stuff.

Improved the error handling in NpgsqlClosedState.Open().

Changed connection timeout handling to take in consideration the time spent in the dns lookup as well as the time to connect to the many ips addresses which can be returned from this dns lookup.
Merge pull request #31 from roji/editorconfig

Added .editorconfig file