Skip to content
Browse files

IndependenceDay

Creating a dedicated SignalR store client
1 parent edeacf4 commit fa864e866bea4737dbd888f993892694f2f6b1a6 @moozzyk moozzyk committed
View
1 build/Build.proj
@@ -96,7 +96,6 @@
</Projects>
<Projects Include="$(ProjectRoot)\src\Microsoft.AspNet.SignalR.Client.Store\Microsoft.AspNet.SignalR.Client.Store.csproj">
<Platform>portable-win81+wpa81</Platform>
- <RunFxCop>false</RunFxCop>
</Projects>
<Projects Include="$(ProjectRoot)\src\Microsoft.AspNet.SignalR.Client.UWP\Microsoft.AspNet.SignalR.Client.UWP.csproj">
<Build Condition="!$(NetNativeInstalled)">false</Build>
View
2 nuspecs/Microsoft.AspNet.SignalR.Client.nuspec
@@ -40,8 +40,6 @@
<file src="portable-net45+sl50+win+wpa81+wp80\Microsoft.AspNet.SignalR.Client.xml" target="lib\portable-net45+sl50+win+wpa81+wp80" />
<file src="portable-win81+wpa81\Microsoft.AspNet.SignalR.Client.dll" target="lib\portable-win81+wpa81" />
<file src="portable-win81+wpa81\Microsoft.AspNet.SignalR.Client.xml" target="lib\portable-win81+wpa81" />
- <file src="portable-win81+wpa81\Microsoft.AspNet.SignalR.Client.Store.dll" target="lib\portable-win81+wpa81" />
- <file src="portable-win81+wpa81\Microsoft.AspNet.SignalR.Client.Store.Xml" target="lib\portable-win81+wpa81" />
<file src="netcore50\Microsoft.AspNet.SignalR.Client.dll" target="lib\netcore50" />
<file src="netcore50\Microsoft.AspNet.SignalR.Client.Xml" target="lib\netcore50" />
</files>
View
222 src/Microsoft.AspNet.SignalR.Client.Store/Microsoft.AspNet.SignalR.Client.Store.csproj
@@ -9,7 +9,7 @@
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Microsoft.AspNet.SignalR.Client</RootNamespace>
- <AssemblyName>Microsoft.AspNet.SignalR.Client.Store</AssemblyName>
+ <AssemblyName>Microsoft.AspNet.SignalR.Client</AssemblyName>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<TargetFrameworkProfile>Profile32</TargetFrameworkProfile>
<DefaultLanguage>en-US</DefaultLanguage>
@@ -23,7 +23,7 @@
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_APP</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
@@ -31,7 +31,7 @@
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
+ <DefineConstants>TRACE;NETFX_CORE;WINDOWS_APP</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
@@ -39,13 +39,6 @@
<DocumentationFile>$(OutputPath)\$(AssemblyName).Xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
- <!-- A reference to the entire .NET Framework is automatically included -->
- <ProjectReference Include="..\Microsoft.AspNet.SignalR.Client.Portable\Microsoft.AspNet.SignalR.Client.Portable.csproj">
- <Project>{47b3f28e-76db-40bd-a8f5-800cf08d84ed}</Project>
- <Name>Microsoft.AspNet.SignalR.Client.Portable</Name>
- </ProjectReference>
- </ItemGroup>
- <ItemGroup>
<TargetPlatform Include="WindowsPhoneApp, Version=8.1" />
<TargetPlatform Include="Windows, Version=8.1" />
</ItemGroup>
@@ -56,6 +49,204 @@
<Compile Include="..\Common\CommonVersionInfo.cs">
<Link>Properties\CommonVersionInfo.cs</Link>
</Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client45\Http\DefaultHttpClient.cs">
+ <Link>Http\DefaultHttpClient.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client45\Http\DefaultHttpHandler.cs">
+ <Link>Http\DefaultHttpHandler.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client45\Http\HttpRequestMessageWrapper.cs">
+ <Link>Http\HttpRequestMessageWrapper.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client45\Http\HttpResponseMessageWrapper.cs">
+ <Link>Http\HttpResponseMessageWrapper.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client45\Infrastructure\HttpClientException.cs">
+ <Link>Infrastructure\HttpClientException.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Connection.cs">
+ <Link>Connection.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\ConnectionExtensions.cs">
+ <Link>ConnectionExtensions.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\ConnectionState.cs">
+ <Link>ConnectionState.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\HeaderDictionary.cs">
+ <Link>HeaderDictionary.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\HeartBeatMonitor.cs">
+ <Link>HeartBeatMonitor.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Http\HttpHelper.cs">
+ <Link>Http\HttpHelper.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Http\IHttpClient.cs">
+ <Link>Http\IHttpClient.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Http\IHttpClientExtensions.cs">
+ <Link>Http\IHttpClientExtensions.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Http\IRequest.cs">
+ <Link>Http\IRequest.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Http\IResponse.cs">
+ <Link>Http\IResponse.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Http\IResponseExtensions.cs">
+ <Link>Http\IResponseExtensions.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\HubConnection.cs">
+ <Link>HubConnection.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\HubException.cs">
+ <Link>HubException.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\HubProxyExtensions.cs">
+ <Link>HubProxyExtensions.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Hubs\HubInvocation.cs">
+ <Link>Hubs\HubInvocation.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Hubs\HubProgressUpdate.cs">
+ <Link>Hubs\HubProgressUpdate.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Hubs\HubProxy.cs">
+ <Link>Hubs\HubProxy.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Hubs\HubRegistrationData.cs">
+ <Link>Hubs\HubRegistrationData.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Hubs\HubResult.cs">
+ <Link>Hubs\HubResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Hubs\Hubservable.cs">
+ <Link>Hubs\Hubservable.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Hubs\IHubConnection.cs">
+ <Link>Hubs\IHubConnection.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Hubs\Subscription.cs">
+ <Link>Hubs\Subscription.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\IConnection.cs">
+ <Link>IConnection.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\IHubProxy.cs">
+ <Link>IHubProxy.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Infrastructure\ErrorExtensions.cs">
+ <Link>Infrastructure\ErrorExtensions.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Infrastructure\ExceptionHelper.cs">
+ <Link>Infrastructure\ExceptionHelper.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Infrastructure\ITaskMonitor.cs">
+ <Link>Infrastructure\ITaskMonitor.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Infrastructure\SignalRError.cs">
+ <Link>Infrastructure\SignalRError.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Infrastructure\SlowCallbackException.cs">
+ <Link>Infrastructure\SlowCallbackException.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Infrastructure\StartException.cs">
+ <Link>Infrastructure\StartException.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Infrastructure\TaskQueueMonitor.cs">
+ <Link>Infrastructure\TaskQueueMonitor.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Infrastructure\TransportAbortHandler.cs">
+ <Link>Infrastructure\TransportAbortHandler.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Infrastructure\TransportInitializationHandler.cs">
+ <Link>Infrastructure\TransportInitializationHandler.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Infrastructure\StreamExtensions.cs">
+ <Link>Infrastructure\StreamExtensions.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Infrastructure\ThreadSafeInvoker.cs">
+ <Link>Infrastructure\ThreadSafeInvoker.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Infrastructure\UrlBuilder.cs">
+ <Link>Infrastructure\UrlBuilder.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Infrastructure\UrlEncoder.cs">
+ <Link>Infrastructure\UrlEncoder.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\KeepAliveData.cs">
+ <Link>KeepAliveData.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\NegotiationResponse.cs">
+ <Link>NegotiationResponse.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\ObservableConnection.cs">
+ <Link>ObservableConnection.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Resources.Designer.cs">
+ <Link>Resources.Designer.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\StateChange.cs">
+ <Link>StateChange.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\TraceLevels.cs">
+ <Link>TraceLevels.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Transports\AsyncStreamReader.cs">
+ <Link>Transports\AsyncStreamReader.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Transports\AutoTransport.cs">
+ <Link>Transports\AutoTransport.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Transports\ClientTransportBase.cs">
+ <Link>Transports\ClientTransportBase.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Transports\HttpBasedTransport.cs">
+ <Link>Transports\HttpBasedTransport.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Transports\IClientTransport.cs">
+ <Link>Transports\IClientTransport.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Transports\LongPollingTransport.cs">
+ <Link>Transports\LongPollingTransport.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Transports\ServerSentEventsTransport.cs">
+ <Link>Transports\ServerSentEventsTransport.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Transports\ServerSentEvents\ChunkBuffer.cs">
+ <Link>Transports\ServerSentEvents\ChunkBuffer.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Transports\ServerSentEvents\EventSourceStreamReader.cs">
+ <Link>Transports\ServerSentEvents\EventSourceStreamReader.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Transports\ServerSentEvents\EventType.cs">
+ <Link>Transports\ServerSentEvents\EventType.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Transports\ServerSentEvents\SseEvent.cs">
+ <Link>Transports\ServerSentEvents\SseEvent.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Transports\TransportHelper.cs">
+ <Link>Transports\TransportHelper.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Core\Infrastructure\CancellationTokenExtensions.cs">
+ <Link>Infrastructure\CancellationTokenExtensions.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Core\Infrastructure\DisposableAction.cs">
+ <Link>Infrastructure\DisposableAction.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Core\Infrastructure\Disposer.cs">
+ <Link>Infrastructure\Disposer.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Core\Infrastructure\ExceptionsExtensions.cs">
+ <Link>Infrastructure\ExceptionsExtensions.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Core\Infrastructure\TaskQueue.cs">
+ <Link>Infrastructure\TaskQueue.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Core\TaskAsyncHelper.cs">
+ <Link>Infrastructure\TaskAsyncHelper.cs</Link>
+ </Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="ResourcesStore.cs" />
<Compile Include="Transports\IWebSocketResponse.cs" />
@@ -71,6 +262,13 @@
</PRIResource>
</ItemGroup>
<ItemGroup>
+ <EmbeddedResource Include="..\Microsoft.AspNet.SignalR.Client\Resources.resx" />
+ </ItemGroup>
+ <ItemGroup>
+ <Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
+ <HintPath>..\..\packages\Newtonsoft.Json.6.0.4\lib\portable-net45+wp80+win8+wpa81\Newtonsoft.Json.dll</HintPath>
+ <Private>True</Private>
+ </Reference>
<Reference Include="System.Net.Http.Extensions">
<HintPath>..\..\packages\Microsoft.Net.Http.2.2.28\lib\portable-net45+win8+wpa81\System.Net.Http.Extensions.dll</HintPath>
</Reference>
@@ -78,7 +276,7 @@
<HintPath>..\..\packages\Microsoft.Net.Http.2.2.28\lib\portable-net45+win8+wpa81\System.Net.Http.Primitives.dll</HintPath>
</Reference>
</ItemGroup>
- <Import Project="..\..\src\Common\Microsoft.AspNet.SignalR.targets" />
+ <Import Project="..\Common\Microsoft.AspNet.SignalR.targets" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
@@ -92,7 +290,7 @@
<Error Condition="!Exists('..\..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" Text="This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=317567." HelpKeyword="BCLBUILD2001" />
<Error Condition="Exists('..\..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" Text="The build restored NuGet packages. Build the project again to include these packages in the build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317568." HelpKeyword="BCLBUILD2002" />
</Target>
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
View
2 src/Microsoft.AspNet.SignalR.Client.Store/Transports/WebSocketTransport.cs
@@ -179,7 +179,7 @@ public override Task Send(IConnection connection, string data, string connection
messageWriter.DetachStream();
}
}
-
+
private void WebsocketClosed(IWebSocket webSocket, WebSocketClosedEventArgs eventArgs)
{
_connection.Trace(TraceLevels.Events, "WS: WebsocketClosed - Code: {0}, Reason {1}", eventArgs.Code, eventArgs.Reason);
View
1 src/Microsoft.AspNet.SignalR.Client.Store/packages.config
@@ -3,4 +3,5 @@
<package id="Microsoft.Bcl" version="1.1.9" targetFramework="portable-win81+wpa81" />
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="portable-win81+wpa81" />
<package id="Microsoft.Net.Http" version="2.2.28" targetFramework="portable-win81+wpa81" />
+ <package id="Newtonsoft.Json" version="6.0.4" targetFramework="portable46-win81+wpa81" />
</packages>
View
2 src/Microsoft.AspNet.SignalR.Client/Connection.cs
@@ -917,6 +917,8 @@ void IConnection.PrepareRequest(IRequest request)
// Cannot set user agent for Portable because SL does not support it.
#elif NETFX_CORE
request.UserAgent = CreateUserAgentString("SignalR.Client.WinUAP");
+#elif WINDOWS_APP
+ request.UserAgent = CreateUserAgentString("SignalR.Client.Win8UniversalApp");
#elif NET45
request.UserAgent = CreateUserAgentString("SignalR.Client.NET45");
#else
View
2 src/Microsoft.AspNet.SignalR.Client/Transports/AutoTransport.cs
@@ -27,7 +27,7 @@ public AutoTransport(IHttpClient httpClient)
_transports = new List<IClientTransport>()
{
-#if NET45 || WINDOWS_UWP
+#if NET45 || WINDOWS_UWP || WINDOWS_APP
new WebSocketTransport(httpClient),
#endif
new ServerSentEventsTransport(httpClient),
View
4 tests/Microsoft.AspNet.SignalR.Client.Store.Tests/Fakes/FakeConnection.cs
@@ -70,7 +70,7 @@ public bool ChangeState(ConnectionState oldState, ConnectionState newState)
{
_invocationManager.AddInvocation("ChangeState", oldState, newState);
- return _invocationManager.GetReturnValue<bool>("ChangeState");
+ return _invocationManager.GetReturnValue<bool>("ChangeState");
}
public IDictionary<string, string> Headers
@@ -186,5 +186,7 @@ public void Setup<T>(string methodName, Func<T> behavior)
{
_invocationManager.AddSetup(methodName, behavior);
}
+
+ public IWebProxy Proxy { get; set; }
}
}
View
2 tests/Microsoft.AspNet.SignalR.Client.Store.Tests/FunctionalTests/EndToEndTests.cs
@@ -37,7 +37,7 @@ public class EndToEndTests
}
});
- await hubConnection.Start(new WebSocketTransport());
+ await hubConnection.Start();
for (var i = 0; i < MessageCount; i++)
{
View
8 ...soft.AspNet.SignalR.Client.Store.Tests/Microsoft.AspNet.SignalR.Client.Store.Tests.csproj
@@ -181,10 +181,6 @@
</Reference>
</ItemGroup>
<ItemGroup>
- <ProjectReference Include="..\..\src\Microsoft.AspNet.SignalR.Client.Portable\Microsoft.AspNet.SignalR.Client.Portable.csproj">
- <Project>{47b3f28e-76db-40bd-a8f5-800cf08d84ed}</Project>
- <Name>Microsoft.AspNet.SignalR.Client.Portable</Name>
- </ProjectReference>
<ProjectReference Include="..\..\src\Microsoft.AspNet.SignalR.Client.Store\Microsoft.AspNet.SignalR.Client.Store.csproj">
<Project>{29e437b6-c451-4353-bb29-3b85ef16a3cf}</Project>
<Name>Microsoft.AspNet.SignalR.Client.Store</Name>
@@ -214,10 +210,10 @@
</Target>
<Import Project="..\..\packages\xunit.runner.visualstudio.0.99.8\build\win8\xunit.runner.visualstudio.targets" Condition="Exists('..\..\packages\xunit.runner.visualstudio.0.99.8\build\win8\xunit.runner.visualstudio.targets')" />
<Import Project="..\..\packages\xunit.core.2.0.0-beta4-build2738\build\win8\xunit.core.targets" Condition="Exists('..\..\packages\xunit.core.2.0.0-beta4-build2738\build\win8\xunit.core.targets')" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
- </Target>
+ </Target>
<Target Name="AfterBuild">
</Target>
-->
View
4 tests/Microsoft.AspNet.SignalR.Client.Store.Tests/Transports/WebSocketTransportFacts.cs
@@ -76,7 +76,7 @@ public void SupportsKeepAliveReturnsTrue()
var openWebSocketInvocations = fakeWebSocketTransport.GetInvocations("OpenWebSocket").ToArray();
Assert.Equal(1, openWebSocketInvocations.Length);
Assert.StartsWith(
- "ws://fake.urlconnect/?clientProtocol=1.42&transport=webSockets&connectionData=test&connectionToken=MyConnToken&messageId=MsgId&noCache=",
+ "ws://fake.urlconnect/?clientProtocol=1.42&transport=webSockets&connectionData=test&connectionToken=MyConnToken&messageId=MsgId",
((Uri)openWebSocketInvocations[0][1]).AbsoluteUri);
}
@@ -235,7 +235,7 @@ public void MessageReceivedReadsAndProcessesMessages()
var openWebSocketInvocations = fakeWebSocketTransport.GetInvocations("OpenWebSocket").ToArray();
Assert.Equal(1, openWebSocketInvocations.Length);
Assert.StartsWith("ws://fakeserver/reconnect?", ((Uri)openWebSocketInvocations[0][1]).AbsoluteUri);
- Assert.Contains("&connectionData=abc&", ((Uri)openWebSocketInvocations[0][1]).AbsoluteUri);
+ Assert.Contains("&connectionData=abc", ((Uri)openWebSocketInvocations[0][1]).AbsoluteUri);
Assert.Equal(1, fakeConnection.GetInvocations("OnReconnected").Count());
}

0 comments on commit fa864e8

Please sign in to comment.
Something went wrong with that request. Please try again.