Exemple #1
0
 /// <summary>
 ///     Abandon the request associated with MsgId.
 /// </summary>
 /// <param name="msgId">
 ///     the message id to abandon.
 /// </param>
 /// <param name="cons">
 ///     constraints associated with this request.
 /// </param>
 /// <param name="cancellationToken"></param>
 internal async Task Abandon(int msgId, LdapConstraints cons, CancellationToken cancellationToken)
 {
     try
     {
         // Send abandon request and remove from connection list
         var info = _messages.FindMessageById(msgId);
         _messages.Remove(info);
         await info.Abandon(cons, null, cancellationToken).ConfigureAwait(false);
     }
     catch (FieldAccessException ex)
     {
         Logger.Log.LogWarning("Exception swallowed", ex);
     }
 }
Exemple #2
0
 /// <summary>
 ///     Abandon the request associated with MsgId.
 /// </summary>
 /// <param name="msgId">
 ///     the message id to abandon.
 /// </param>
 /// <param name="cons">
 ///     constraints associated with this request.
 /// </param>
 internal void Abandon(int msgId, LdapConstraints cons)
 {
     try
     {
         // Send abandon request and remove from connection list
         var info = _messages.FindMessageById(msgId);
         _messages.Remove(info);
         info.Abandon(cons, null);
     }
     catch (FieldAccessException ex)
     {
         Logger.Log.LogWarning("Exception swallowed", ex);
     }
 }