| | 1 | | /* |
| | 2 | | * Copyright 2017 Stanislav Muhametsin. All rights Reserved. |
| | 3 | | * |
| | 4 | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | 5 | | * you may not use this file except in compliance with the License. |
| | 6 | | * You may obtain a copy of the License at |
| | 7 | | * |
| | 8 | | * http://www.apache.org/licenses/LICENSE-2.0 |
| | 9 | | * |
| | 10 | | * Unless required by applicable law or agreed to in writing, software |
| | 11 | | * distributed under the License is distributed on an "AS IS" BASIS, |
| | 12 | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
| | 13 | | * implied. |
| | 14 | | * |
| | 15 | | * See the License for the specific language governing permissions and |
| | 16 | | * limitations under the License. |
| | 17 | | */ |
| | 18 | | using CBAM.Abstractions.Implementation; |
| | 19 | | using System; |
| | 20 | | using System.Collections.Generic; |
| | 21 | | using System.IO; |
| | 22 | | using System.Text; |
| | 23 | | using System.Threading; |
| | 24 | | using System.Threading.Tasks; |
| | 25 | |
|
| | 26 | | namespace CBAM.SQL.PostgreSQL.Implementation |
| | 27 | | { |
| | 28 | | internal sealed class PgSQLConnectionAcquireInfo : ConnectionAcquireInfoImpl<PgSQLConnectionImpl, PostgreSQLProtocol, |
| | 29 | | { |
| | 30 | | public PgSQLConnectionAcquireInfo( PgSQLConnectionImpl connection, PostgreSQLProtocol functionality ) |
| 24 | 31 | | : base( connection, functionality, functionality.Stream ) |
| | 32 | | { |
| | 33 | |
|
| 24 | 34 | | } |
| | 35 | |
|
| | 36 | | protected override Task DisposeBeforeClosingChannel( CancellationToken token ) |
| | 37 | | { |
| 24 | 38 | | return this.Functionality.PerformClose( token ); |
| | 39 | | } |
| | 40 | | } |
| | 41 | | } |