diff options
| author | Tomas Restrepo <tomasr@apache.org> | 2007-05-18 00:18:26 +0000 |
|---|---|---|
| committer | Tomas Restrepo <tomasr@apache.org> | 2007-05-18 00:18:26 +0000 |
| commit | 5b52a27ad60df55e794a17935bdea5852b426c34 (patch) | |
| tree | ddc42d1abb5ee8fa0ce70746d99e9e257fa5805e /dotnet/Qpid.Client/Client/Handler/QueueDeleteOkMethodHandler.cs | |
| parent | bc745c6e2e2dbc1e14e2cd8582be9d6995c8fb7f (diff) | |
| download | qpid-python-5b52a27ad60df55e794a17935bdea5852b426c34.tar.gz | |
QPID-490 (Contributed by Carlos Medina) Implement PurgeQueue and DeleteQueue
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@539191 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dotnet/Qpid.Client/Client/Handler/QueueDeleteOkMethodHandler.cs')
| -rw-r--r-- | dotnet/Qpid.Client/Client/Handler/QueueDeleteOkMethodHandler.cs | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/dotnet/Qpid.Client/Client/Handler/QueueDeleteOkMethodHandler.cs b/dotnet/Qpid.Client/Client/Handler/QueueDeleteOkMethodHandler.cs new file mode 100644 index 0000000000..9a67b69834 --- /dev/null +++ b/dotnet/Qpid.Client/Client/Handler/QueueDeleteOkMethodHandler.cs @@ -0,0 +1,44 @@ +/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+using log4net;
+using Qpid.Client.Message;
+using Qpid.Client.Protocol;
+using Qpid.Client.State;
+using Qpid.Framing;
+
+namespace Qpid.Client.Handler
+{
+ public class QueueDeleteOkMethodHandler : IStateAwareMethodListener
+ {
+
+ private static readonly ILog _logger = LogManager.GetLogger(typeof(QueueDeleteOkMethodHandler));
+
+ public void MethodReceived(AMQStateManager stateManager, AMQMethodEvent evt)
+ {
+ QueueDeleteOkBody body = (QueueDeleteOkBody)evt.Method;
+ if (body != null)
+ {
+ _logger.InfoFormat("Received Queue.Delete-Ok message, message count {0}", body.MessageCount);
+ }
+ }
+
+ }
+}
|
