Author: tabish
Date: Mon Dec 23 22:09:46 2013
New Revision: 1553223

URL: http://svn.apache.org/r1553223
Log:
https://issues.apache.org/jira/browse/AMQNET-454

https://issues.apache.org/jira/secure/attachment/12620270/Apache.NMS.AMQP-add-topic-05.patch

Added:
    activemq/activemq-dotnet/Apache.NMS.AMQP/trunk/src/main/csharp/Topic.cs   
(with props)
Modified:
    activemq/activemq-dotnet/Apache.NMS.AMQP/trunk/src/main/csharp/Session.cs
    activemq/activemq-dotnet/Apache.NMS.AMQP/trunk/vs2010-amqp.csproj

Modified: 
activemq/activemq-dotnet/Apache.NMS.AMQP/trunk/src/main/csharp/Session.cs
URL: 
http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.AMQP/trunk/src/main/csharp/Session.cs?rev=1553223&r1=1553222&r2=1553223&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.AMQP/trunk/src/main/csharp/Session.cs 
(original)
+++ activemq/activemq-dotnet/Apache.NMS.AMQP/trunk/src/main/csharp/Session.cs 
Mon Dec 23 22:09:46 2013
@@ -379,7 +379,7 @@ namespace Apache.NMS.Amqp
 
         public ITopic GetTopic(string name)
         {
-            throw new NotSupportedException("TODO: Topic");
+            return new Topic(name);
         }
 
         public ITemporaryQueue CreateTemporaryQueue()

Added: activemq/activemq-dotnet/Apache.NMS.AMQP/trunk/src/main/csharp/Topic.cs
URL: 
http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.AMQP/trunk/src/main/csharp/Topic.cs?rev=1553223&view=auto
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.AMQP/trunk/src/main/csharp/Topic.cs 
(added)
+++ activemq/activemq-dotnet/Apache.NMS.AMQP/trunk/src/main/csharp/Topic.cs Mon 
Dec 23 22:09:46 2013
@@ -0,0 +1,60 @@
+/*
+ * 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 System;
+
+namespace Apache.NMS.Amqp
+{
+
+       /// <summary>
+       /// Summary description for Topic.
+       /// </summary>
+       public class Topic : Destination, ITopic
+       {
+
+               public Topic()
+                       : base()
+               {
+               }
+
+               public Topic(String name)
+                       : base(name)
+               {
+               }
+
+               override public DestinationType DestinationType
+               {
+                       get
+                       {
+                               return DestinationType.Topic;
+                       }
+               }
+
+               public String TopicName
+               {
+                       get { return Path; }
+               }
+
+
+               public override Destination CreateDestination(String name)
+               {
+                       return new Topic(name);
+               }
+
+
+       }
+}
+

Propchange: 
activemq/activemq-dotnet/Apache.NMS.AMQP/trunk/src/main/csharp/Topic.cs
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: activemq/activemq-dotnet/Apache.NMS.AMQP/trunk/vs2010-amqp.csproj
URL: 
http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.AMQP/trunk/vs2010-amqp.csproj?rev=1553223&r1=1553222&r2=1553223&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.AMQP/trunk/vs2010-amqp.csproj (original)
+++ activemq/activemq-dotnet/Apache.NMS.AMQP/trunk/vs2010-amqp.csproj Mon Dec 
23 22:09:46 2013
@@ -90,8 +90,10 @@
     <Compile Include="src\main\csharp\ObjectMessage.cs" />
     <Compile Include="src\main\csharp\Queue.cs" />
     <Compile Include="src\main\csharp\Session.cs" />
+    <Compile Include="src\main\csharp\SessionClosedException.cs" />
     <Compile Include="src\main\csharp\StreamMessage.cs" />
     <Compile Include="src\main\csharp\TextMessage.cs" />
+    <Compile Include="src\main\csharp\Topic.cs" />
   </ItemGroup>
   <ItemGroup>
     <None Include="keyfile\NMSKey.snk" />


Reply via email to