Bruce Dodson created AMQNET-631:
-----------------------------------

             Summary: extension methods missing in 1.8.0 e.g. 
SessionExtensions.GetDestination
                 Key: AMQNET-631
                 URL: https://issues.apache.org/jira/browse/AMQNET-631
             Project: ActiveMQ .Net
          Issue Type: Bug
          Components: NMS
    Affects Versions: 1.8.0
         Environment: Windows / .NET Framework 4.x
            Reporter: Bruce Dodson


After updating NMS to 1.8.0 in my project, I am getting build errors indicating 
that the GetDestination method is not available on ISession. 

This method is defined in the SessionExtensions class, but it is conditionally 
included only if the symbol MONO or NET_3_5 is defined.

This symbol must have been defined previously, but is now omitted as part of 
the cleanup that was done for 1.8.

Perhaps the extension methods could be defined for any supported version of 
.NET at this point, assuming .NET < 3.5 is no longer supported by the project 
at all?

The extension method simply delegates to SessionUtil.GetDestination, which is 
exposed to public as well, so to work around the issue for my immediate need I 
just called that directly. However, the extension methods should still be 
provided as before, rather than have a breaking change.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to