I'm developing two applications. One is a windows store app that will run on WinRT and one is a WPF application that will either run on Windows 7 or 8.
The two applications are supposed to communicate through an SSL connection (Tcp). I would like to have a common class created that will be used by both applications (So that changes to the class will affect both projects).
I've tried using a portable class library, however, it doesn't support any SSL or even TCP connections (There is no System.Net.Sockets namespace). This is probably because windows store apps use StreamSocket instead of SslStream or TcpClient and WPF applications don't have StreamSocket.
Is there anything in common that will help me develop this class? Is there perhaps any way that I can use SslStream/TcpClient in a windows store app or StreamSocket in a WPF application? Having two different classes for the same functionality is very bad design.