Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Enabled UDP support on Windows Phone 7.1, updated WP71 unit tests.

  • Loading branch information...
commit 3fd0ef568f67aee1bec2153ccbd8c8abdc4e0d06 1 parent f57cbdf
@jkowalski authored
View
2  src/NLog/Internal/NetworkSenders/ISocket.cs
@@ -48,7 +48,7 @@ internal interface ISocket
bool SendAsync(SocketAsyncEventArgs args);
-#if !SILVERLIGHT
+#if !SILVERLIGHT || (WINDOWS_PHONE && !WINDOWS_PHONE_7)
bool SendToAsync(SocketAsyncEventArgs args);
#endif
}
View
2  src/NLog/Internal/NetworkSenders/NetworkSenderFactory.cs
@@ -84,7 +84,7 @@ public NetworkSender Create(string url)
}
#endif
-#if !SILVERLIGHT
+#if !SILVERLIGHT || (WINDOWS_PHONE && !WINDOWS_PHONE_7)
if (url.StartsWith("udp://", StringComparison.OrdinalIgnoreCase))
{
return new UdpNetworkSender(url, AddressFamily.Unspecified);
View
2  src/NLog/Internal/NetworkSenders/SocketProxy.cs
@@ -121,7 +121,7 @@ public bool SendAsync(SocketAsyncEventArgs args)
return this.socket.SendAsync(args);
}
-#if !SILVERLIGHT
+#if !SILVERLIGHT || (WINDOWS_PHONE && !WINDOWS_PHONE_7)
/// <summary>
/// Invokes SendToAsync method on the wrapped socket.
/// </summary>
View
2  src/NLog/Internal/NetworkSenders/UdpNetworkSender.cs
@@ -31,7 +31,7 @@
// THE POSSIBILITY OF SUCH DAMAGE.
//
-#if !SILVERLIGHT
+#if !SILVERLIGHT || (WINDOWS_PHONE && !WINDOWS_PHONE_7)
namespace NLog.Internal.NetworkSenders
{
View
6 tests/NLog.UnitTests/NLog.UnitTests.wp71.csproj
@@ -210,11 +210,11 @@
<ItemGroup>
<ProjectReference Include="..\..\src\NLog\NLog.wp71.csproj">
<Project>{8A0E38D3-6E7E-45B0-A360-218F7E98743D}</Project>
- <Name>NLog.wp7</Name>
+ <Name>NLog.wp71</Name>
</ProjectReference>
- <ProjectReference Include="..\SampleExtensions\SampleExtensions.wp7.csproj">
+ <ProjectReference Include="..\SampleExtensions\SampleExtensions.wp71.csproj">
<Project>{8A0E38D3-1512-45B0-A360-218F7E98743D}</Project>
- <Name>SampleExtensions.wp7</Name>
+ <Name>SampleExtensions.wp71</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.$(TargetFrameworkProfile).Overrides.targets" />
View
2  tests/SampleExtensions/SampleExtensions.wp71.csproj
@@ -68,7 +68,7 @@
<ItemGroup>
<ProjectReference Include="..\..\src\NLog\NLog.wp71.csproj">
<Project>{8A0E38D3-6E7E-45B0-A360-218F7E98743D}</Project>
- <Name>NLog.wp7</Name>
+ <Name>NLog.wp71</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.$(TargetFrameworkProfile).Overrides.targets" />
Please sign in to comment.
Something went wrong with that request. Please try again.