/// <summary> /// Constructor. /// </summary> /// <param name="Shared">Controls whether the connector can be shared.</param> public NpgsqlConnector(NpgsqlConnectionStringBuilder ConnectionString, bool Pooled, bool Shared) { this.settings = ConnectionString; State = ConnectionState.Closed; _pooled = Pooled; _shared = Shared; _isInitialized = false; _state = NpgsqlClosedState.Instance; _mediator = new NpgsqlMediator(); _oidToNameMapping = new NpgsqlBackendTypeMapping(); _planIndex = 0; _portalIndex = 0; _notificationThreadStopCount = 1; _notificationAutoResetEvent = new AutoResetEvent(true); }
/// <summary> /// Constructor. /// </summary> /// <param name="Shared">Controls whether the connector can be shared.</param> public NpgsqlConnector(NpgsqlConnectionStringBuilder ConnectionString, bool Pooled, bool Shared) { this.settings = ConnectionString; State = ConnectionState.Closed; _pooled = Pooled; _shared = Shared; _isInitialized = false; _state = NpgsqlClosedState.Instance; _mediator = new NpgsqlMediator(); _oidToNameMapping = new NpgsqlBackendTypeMapping(); _planIndex = 0; _portalIndex = 0; _notificationThreadStopCount = 1; _notificationAutoResetEvent = new AutoResetEvent(true); rowDescription = new NpgsqlRowDescription(CompatVersion); rowReader = new StringRowReader(rowDescription, Stream, TmpBuffer, ArrayBuffer); forwardReader = new ForwardsOnlyRow(rowReader); }
///<summary> ///This method is used by the states to change the state of the context. /// </summary> protected static void ChangeState(NpgsqlConnector context, NpgsqlState newState) { context.CurrentState = newState; }
///<summary> ///This method is used by the states to change the state of the context. /// </summary> protected static void ChangeState(NpgsqlConnector context, NpgsqlState newState) { context.CurrentState = newState; }
/// <summary> /// Constructor. /// </summary> /// <param name="Shared">Controls whether the connector can be shared.</param> public NpgsqlConnector(NpgsqlConnectionStringBuilder ConnectionString, bool Pooled, bool Shared) { this.settings = ConnectionString; State = ConnectionState.Closed; _pooled = Pooled; _shared = Shared; _isInitialized = false; _state = NpgsqlClosedState.Instance; _mediator = new NpgsqlMediator(); _oidToNameMapping = new NpgsqlBackendTypeMapping(); _planIndex = 0; _portalIndex = 0; _notificationThreadStopCount = 1; _notificationAutoResetEvent = new AutoResetEvent(true); }
internal NpgsqlContextHolder(NpgsqlConnector connector, NpgsqlState state) { this.connector = connector; this.state = state; }
internal NpgsqlContextHolder(NpgsqlConnector connector, NpgsqlState state) { this.connector = connector; this.state = state; }
internal NpgsqlContextHolder(NpgsqlConnector connector, NpgsqlState state, CancellationToken token) { this.connector = connector; this.state = state; this.token = token; }