@@ -169,6 +169,20 @@ public interface IConnection: IDisposable
169
169
///</remarks>
170
170
void Close ( ) ;
171
171
172
+ ///<summary>Close this connection and all its channels.</summary>
173
+ ///<remarks>
174
+ ///The method behaves in the same way as Close(), with the only
175
+ ///difference that the connection is closed with the given connection
176
+ ///close code and message.
177
+ ///<para>
178
+ ///The close code (See under "Reply Codes" in the AMQP specification)
179
+ ///</para>
180
+ ///<para>
181
+ ///A message indicating the reason for closing the connection
182
+ ///</para>
183
+ ///</remarks>
184
+ void Close ( ushort reasonCode , string reasonText ) ;
185
+
172
186
///<summary>Close this connection and all its channels
173
187
///and wait with a timeout for all the in-progress close operations
174
188
///to complete.
@@ -189,6 +203,23 @@ public interface IConnection: IDisposable
189
203
///</remarks>
190
204
void Close ( int timeout ) ;
191
205
206
+ ///<summary>Close this connection and all its channels
207
+ ///and wait with a timeout for all the in-progress close operations
208
+ ///to complete.
209
+ ///</summary>
210
+ ///<remarks>
211
+ ///The method behaves in the same way as Close(int timeout), with the only
212
+ ///difference that the connection is closed with the given connection
213
+ ///close code and message.
214
+ ///<para>
215
+ ///The close code (See under "Reply Codes" in the AMQP specification)
216
+ ///</para>
217
+ ///<para>
218
+ ///A message indicating the reason for closing the connection
219
+ ///</para>
220
+ ///</remarks>
221
+ void Close ( ushort reasonCode , string reasonText , int timeout ) ;
222
+
192
223
///<summary>Abort this connection and all its channels.</summary>
193
224
///<remarks>
194
225
///Note that all active channels, sessions, and models will be
@@ -200,10 +231,24 @@ public interface IConnection: IDisposable
200
231
///</remarks>
201
232
void Abort ( ) ;
202
233
234
+ ///<summary>Abort this connection and all its channels.</summary>
235
+ ///<remarks>
236
+ ///The method behaves in the same way as Abort(), with the only
237
+ ///difference that the connection is closed with the given connection
238
+ ///close code and message.
239
+ ///<para>
240
+ ///The close code (See under "Reply Codes" in the AMQP specification)
241
+ ///</para>
242
+ ///<para>
243
+ ///A message indicating the reason for closing the connection
244
+ ///</para>
245
+ ///</remarks>
246
+ void Abort ( ushort reasonCode , string reasonText ) ;
247
+
203
248
///<summary>
204
249
///Abort this connection and all its channels and wait with a
205
250
///timeout for all the in-progress close operations to complete.
206
- ///. </summary>
251
+ ///</summary>
207
252
///<remarks>
208
253
///This method, behaves in a similar way as method Abort() with the
209
254
///only difference that it explictly specifies the timeout given
@@ -217,6 +262,23 @@ public interface IConnection: IDisposable
217
262
///</remarks>
218
263
void Abort ( int timeout ) ;
219
264
265
+ ///<summary>
266
+ ///Abort this connection and all its channels and wait with a
267
+ ///timeout for all the in-progress close operations to complete.
268
+ ///</summary>
269
+ ///<remarks>
270
+ ///The method behaves in the same way as Abort(timeout), with the only
271
+ ///difference that the connection is closed with the given connection
272
+ ///close code and message.
273
+ ///<para>
274
+ ///The close code (See under "Reply Codes" in the AMQP specification)
275
+ ///</para>
276
+ ///<para>
277
+ ///A message indicating the reason for closing the connection
278
+ ///</para>
279
+ ///</remarks>
280
+ void Abort ( ushort reasonCode , string reasonText , int timeout ) ;
281
+
220
282
///<summary>Returns the list of ShutdownReportEntry objects that
221
283
///contain information about any errors reported while closing the
222
284
///connection in the order they appeared</summary>
0 commit comments