public UtlConnectionProxy(UtlConnectionOptions connectionOptions, UtlConnection owner) { this.ConnectionOptions = connectionOptions; this.Owner = owner; this.Created = DateTime.UtcNow.Ticks; this.IsPooled = false; }
public UtlConnectionProxy(ISessionInterface sessionProxy, UtlConnectionOptions connectionOptions, UtlConnection owner) { this.SessionProxy = sessionProxy; this.ConnectionOptions = connectionOptions; this.Owner = owner; this.Created = DateTime.UtcNow.Ticks; this.IsPooled = false; }
public UtlConnection(ISessionInterface sessionProxy) { this._connectionState = ConnectionState.Closed; this._connectionOptions = new UtlConnectionOptions(); this._connectionString = string.Empty; this.Version += 1L; this.InnerConnection = new UtlConnectionProxy(sessionProxy, this._connectionOptions, this); this._connectionState = ConnectionState.Open; }
public UtlConnection(string connectionString) { this._connectionState = ConnectionState.Closed; this._connectionOptions = new UtlConnectionOptions(); this._connectionString = string.Empty; if (!string.IsNullOrEmpty(connectionString)) { this.ConnectionString = connectionString; } }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { this.Close(); this._connectionString = string.Empty; this._connectionOptions = null; } }
public void Close() { if (!this._isClrSpConnection && (this.SessionProxy != null)) { try { this.SessionProxy.Close(); } catch (Exception) { } finally { this.SessionProxy = null; this.Owner = null; this.IsPooled = false; this.Created = 0L; this.ConnectionOptions = null; } } }
public UtlConnectionProxy(UtlConnectionOptions connectionOptions) : this(connectionOptions, null) { }