|
3 | 3 |
|
4 | 4 | import { Connection, ConnectionOptions, generate_uuid } from "rhea-promise"; |
5 | 5 | import { CbsClient } from "./cbs"; |
6 | | -import { DataTransformer, DefaultDataTransformer } from "./dataTransformer"; |
7 | 6 | import { ConnectionConfig } from "./connectionConfig/connectionConfig"; |
8 | 7 |
|
9 | 8 | import { Constants } from "./util/constants"; |
@@ -44,12 +43,6 @@ export interface ConnectionContextBase { |
44 | 43 | * called on the connection object. |
45 | 44 | */ |
46 | 45 | wasConnectionCloseCalled: boolean; |
47 | | - /** |
48 | | - * @property {DataTransformer} dataTransformer A DataTransformer object that has methods named |
49 | | - * - encode Responsible for encoding the AMQP message before sending it on the wire. |
50 | | - * - decode Responsible for decoding the received AMQP message before passing it to the customer. |
51 | | - */ |
52 | | - dataTransformer: DataTransformer; |
53 | 46 | /** |
54 | 47 | * @property {CbsClient} cbsSession A reference to the cbs session ($cbs endpoint) on the |
55 | 48 | * underlying AMQP connection for the EventHub Client. |
@@ -95,11 +88,6 @@ export interface CreateConnectionContextBaseParameters { |
95 | 88 | * the AMQP connection. |
96 | 89 | */ |
97 | 90 | connectionProperties: ConnectionProperties; |
98 | | - /** |
99 | | - * @property {DataTransformer} [dataTransformer] The datatransformer to be used for encoding and |
100 | | - * decoding messages. Default value: DefaultDataTransformer |
101 | | - */ |
102 | | - dataTransformer?: DataTransformer; |
103 | 91 | /** |
104 | 92 | * @property {boolean} [isEntityPathRequired] Determines whether entity path should be a part of |
105 | 93 | * the connection config. If `true` it must be present, `false` otherwise. Default value false. |
@@ -178,7 +166,6 @@ export const ConnectionContextBase = { |
178 | 166 | connectionId: connection.id, |
179 | 167 | cbsSession: new CbsClient(connection, connectionLock), |
180 | 168 | config: parameters.config, |
181 | | - dataTransformer: parameters.dataTransformer || new DefaultDataTransformer(), |
182 | 169 | refreshConnection() { |
183 | 170 | const connection = new Connection(connectionOptions); |
184 | 171 | const connectionLock = `${Constants.establishConnection}-${generate_uuid()}`; |
|
0 commit comments