public override void Startup(NpgsqlConnector context) { NpgsqlStartupPacket startupPacket = new NpgsqlStartupPacket(296, //Not used. context.Database, context.UserName, "", "", ""); startupPacket.WriteToStream(new BufferedStream(context.Stream)); context.RequireReadyForQuery = false; // This still makes part of the connection stablishment handling. // So we use the connectiontimeout here too. context.Mediator.CommandTimeout = context.ConnectionTimeout; context.Stream.Flush(); ProcessBackendResponses(context); }
public override void Startup(NpgsqlConnector context) { NpgsqlStartupPacket startupPacket = new NpgsqlStartupPacket(296, //Not used. context.Database, context.UserName, "", "", ""); startupPacket.WriteToStream(new BufferedStream(context.Stream)); context.RequireReadyForQuery = false; // This still makes part of the connection stablishment handling. // So we use the connectiontimeout here too. context.Mediator.CommandTimeout = context.ConnectionTimeout; context.Stream.Flush(); ProcessBackendResponses(context); }