Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding support for Xamarin.iOS, Xamarin.Android

  • Loading branch information...
commit 66e2cfc67771bbe66cddcc4bfb991cd93fb4caf6 1 parent 726ede6
@gshackles gshackles authored
View
BIN  lib/Android/Newtonsoft.Json.dll
Binary file not shown
View
BIN  lib/iOS/Newtonsoft.Json.dll
Binary file not shown
View
198 src/Microsoft.AspNet.SignalR.Client.Android/Microsoft.AspNet.SignalR.Client.Android.csproj
@@ -0,0 +1,198 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{677A3843-1774-48D8-B00C-01F1151AF2BC}</ProjectGuid>
+ <ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Microsoft.AspNet.SignalR.Client.Android</RootNamespace>
+ <AssemblyName>Microsoft.AspNet.SignalR.Client.Android</AssemblyName>
+ <FileAlignment>512</FileAlignment>
+ <AndroidResgenFile>Resources\Resource.Designer.cs</AndroidResgenFile>
+ <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="Mono.Android" />
+ <Reference Include="mscorlib" />
+ <Reference Include="Newtonsoft.Json">
+ <HintPath>..\..\lib\Android\Newtonsoft.Json.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Resources\Resource.Designer.cs" />
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\ConnectionState.cs">
+ <Link>ConnectionState.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Hubs\IHubConnection.cs">
+ <Link>Hubs\IHubConnection.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Infrastructure\ExceptionHelper.cs">
+ <Link>Infrastructure\ExceptionHelper.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\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="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="..\Common\CommonAssemblyInfo.cs">
+ <Link>Properties\CommonAssemblyInfo.cs</Link>
+ </Compile>
+ <Compile Include="..\Common\CommonVersionInfo.cs">
+ <Link>Properties\CommonVersionInfo.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\ExceptionsExtensions.cs">
+ <Link>Infrastructure\ExceptionsExtensions.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Core\Infrastructure\SafeCancellationTokenSource.cs">
+ <Link>Infrastructure\SafeCancellationTokenSource.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.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\Http\DefaultHttpClient.cs">
+ <Link>Http\DefaultHttpClient.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\HttpWebRequestWrapper.cs">
+ <Link>Http\HttpWebRequestWrapper.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Http\HttpWebResponseWrapper.cs">
+ <Link>Http\HttpWebResponseWrapper.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\Hubs\HubConnection.cs">
+ <Link>Hubs\HubConnection.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\HubProxyExtensions.cs">
+ <Link>Hubs\HubProxyExtensions.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\HubInvocation.cs">
+ <Link>Hubs\HubInvocation.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Hubs\IHubProxy.cs">
+ <Link>Hubs\IHubProxy.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\Infrastructure\ThreadSafeInvoker.cs">
+ <Link>Infrastructure\ThreadSafeInvoker.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Infrastructure\StreamExtensions.cs">
+ <Link>Infrastructure\StreamExtensions.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\NegotiationResponse.cs">
+ <Link>NegotiationResponse.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\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.Core\TaskAsyncHelper.cs">
+ <Link>Infrastructure\TaskAsyncHelper.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Infrastructure\UrlEncoder.cs">
+ <Link>Infrastructure\UrlEncoder.cs</Link>
+ </Compile>
+ </ItemGroup>
+ <Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
+ <!-- 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 Name="AfterBuild">
+ </Target>
+ -->
+</Project>
View
12 src/Microsoft.AspNet.SignalR.Client.Android/Properties/AssemblyInfo.cs
@@ -0,0 +1,12 @@
+using System.Reflection;
+using Android.App;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Microsoft.AspNet.SignalR.Client.Android")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyProduct("Microsoft.AspNet.SignalR.Client.Android")]
+
+// Add some common permissions, these can be removed if not needed
+[assembly: UsesPermission(Android.Manifest.Permission.Internet)]
View
0  src/Microsoft.AspNet.SignalR.Client.Android/Resources/Resource.Designer.cs
No changes.
View
239 src/Microsoft.AspNet.SignalR.Client.iOS/Microsoft.AspNet.SignalR.Client.iOS.csproj
@@ -0,0 +1,239 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{44FABCC9-52E0-43AD-ABA9-C1FA909941E0}</ProjectGuid>
+ <ProjectTypeGuids>{6BC8ED88-2882-458C-8E55-DFD12B67127B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <OutputType>Library</OutputType>
+ <RootNamespace>Microsoft.AspNet.SignalR.Client.iOS</RootNamespace>
+ <IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
+ <AssemblyName>Microsoft.AspNet.SignalR.Client.iOS</AssemblyName>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\iPhoneSimulator\Debug</OutputPath>
+ <DefineConstants>DEBUG;IOS</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>false</ConsolePause>
+ <MtouchLink>None</MtouchLink>
+ <MtouchDebug>true</MtouchDebug>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
+ <DebugType>none</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\iPhoneSimulator\Release</OutputPath>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>false</ConsolePause>
+ <MtouchLink>None</MtouchLink>
+ <DefineConstants>IOS</DefineConstants>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\iPhone\Debug</OutputPath>
+ <DefineConstants>DEBUG;IOS</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>false</ConsolePause>
+ <MtouchDebug>true</MtouchDebug>
+ <CodesignKey>iPhone Developer</CodesignKey>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
+ <DebugType>none</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\iPhone\Release</OutputPath>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>false</ConsolePause>
+ <CodesignKey>iPhone Developer</CodesignKey>
+ <DefineConstants>IOS</DefineConstants>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Ad-Hoc|iPhone' ">
+ <DebugType>none</DebugType>
+ <Optimize>True</Optimize>
+ <OutputPath>bin\iPhone\Ad-Hoc</OutputPath>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>False</ConsolePause>
+ <CodesignKey>iPhone Distribution</CodesignKey>
+ <BuildIpa>True</BuildIpa>
+ <DefineConstants>IOS</DefineConstants>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'AppStore|iPhone' ">
+ <DebugType>none</DebugType>
+ <Optimize>True</Optimize>
+ <OutputPath>bin\iPhone\AppStore</OutputPath>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>False</ConsolePause>
+ <CodesignKey>iPhone Distribution</CodesignKey>
+ <DefineConstants>IOS</DefineConstants>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Ad-Hoc|iPhoneSimulator'">
+ <DefineConstants>IOS</DefineConstants>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'AppStore|iPhoneSimulator'">
+ <DefineConstants>IOS</DefineConstants>
+ </PropertyGroup>
+ <ItemGroup>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\ConnectionState.cs">
+ <Link>ConnectionState.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Hubs\IHubConnection.cs">
+ <Link>Hubs\IHubConnection.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Infrastructure\ExceptionHelper.cs">
+ <Link>Infrastructure\ExceptionHelper.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\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="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="..\Common\CommonAssemblyInfo.cs">
+ <Link>Properties\CommonAssemblyInfo.cs</Link>
+ </Compile>
+ <Compile Include="..\Common\CommonVersionInfo.cs">
+ <Link>Properties\CommonVersionInfo.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\ExceptionsExtensions.cs">
+ <Link>Infrastructure\ExceptionsExtensions.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Core\Infrastructure\SafeCancellationTokenSource.cs">
+ <Link>Infrastructure\SafeCancellationTokenSource.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.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\Http\DefaultHttpClient.cs">
+ <Link>Http\DefaultHttpClient.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\HttpWebRequestWrapper.cs">
+ <Link>Http\HttpWebRequestWrapper.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Http\HttpWebResponseWrapper.cs">
+ <Link>Http\HttpWebResponseWrapper.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\Hubs\HubConnection.cs">
+ <Link>Hubs\HubConnection.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\HubProxyExtensions.cs">
+ <Link>Hubs\HubProxyExtensions.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\HubInvocation.cs">
+ <Link>Hubs\HubInvocation.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Hubs\IHubProxy.cs">
+ <Link>Hubs\IHubProxy.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\Infrastructure\ThreadSafeInvoker.cs">
+ <Link>Infrastructure\ThreadSafeInvoker.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Infrastructure\StreamExtensions.cs">
+ <Link>Infrastructure\StreamExtensions.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\NegotiationResponse.cs">
+ <Link>NegotiationResponse.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\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.Core\TaskAsyncHelper.cs">
+ <Link>Infrastructure\TaskAsyncHelper.cs</Link>
+ </Compile>
+ <Compile Include="..\Microsoft.AspNet.SignalR.Client\Infrastructure\UrlEncoder.cs">
+ <Link>Infrastructure\UrlEncoder.cs</Link>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <Reference Include="Newtonsoft.Json">
+ <HintPath>..\..\lib\iOS\Newtonsoft.Json.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Xml" />
+ <Reference Include="System.Core" />
+ <Reference Include="monotouch" />
+ </ItemGroup>
+ <Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.MonoTouch.CSharp.targets" />
+</Project>
View
8 src/Microsoft.AspNet.SignalR.Client.iOS/Properties/AssemblyInfo.cs
@@ -0,0 +1,8 @@
+using System.Reflection;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Microsoft.AspNet.SignalR.Client.iOS")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyProduct("Microsoft.AspNet.SignalR.Client.iOS")]
View
2  src/Microsoft.AspNet.SignalR.Client/ConnectionExtensions.cs
@@ -88,7 +88,7 @@ public static bool EnsureReconnecting(this IConnection connection)
return connection.State == ConnectionState.Reconnecting;
}
-#if !WINDOWS_PHONE && !SILVERLIGHT && !NET35
+#if !WINDOWS_PHONE && !SILVERLIGHT && !NET35 && !__ANDROID__ && !IOS
public static IObservable<string> AsObservable(this Connection connection)
{
return connection.AsObservable(value => value);
View
2  src/Microsoft.AspNet.SignalR.Client/Hubs/HubProxyExtensions.cs
@@ -222,7 +222,7 @@ public static IDisposable On<T>(this IHubProxy proxy, string eventName, Action<T
return new DisposableAction(() => subscription.Received -= handler);
}
-#if !WINDOWS_PHONE && !SILVERLIGHT && !NET35
+#if !WINDOWS_PHONE && !SILVERLIGHT && !NET35 && !__ANDROID__ && !IOS
/// <summary>
/// Registers for an event with the specified name and callback
/// </summary>
View
10 src/Microsoft.AspNet.SignalR.Client/Transports/TransportHelper.cs
@@ -147,7 +147,7 @@ public static void ProcessResponse(IConnection connection, string response, out
try
{
var result = JValue.Parse(response);
-
+
if (!result.HasValues)
{
return;
@@ -159,8 +159,8 @@ public static void ProcessResponse(IConnection connection, string response, out
return;
}
- timedOut = result.Value<int>("T") == 1;
- disconnected = result.Value<int>("D") == 1;
+ timedOut = (int?)result["T"] == 1;
+ disconnected = (int?)result["D"] == 1;
if (disconnected)
{
@@ -184,7 +184,7 @@ public static void ProcessResponse(IConnection connection, string response, out
}
}
- connection.MessageId = result["C"].Value<string>();
+ connection.MessageId = (string)result["C"];
}
}
catch (Exception ex)
@@ -198,7 +198,7 @@ private static void UpdateGroups(IConnection connection, JToken groupsToken)
{
if (groupsToken != null)
{
- connection.GroupsToken = groupsToken.Value<string>();
+ connection.GroupsToken = (string)groupsToken;
}
}
View
2  src/Microsoft.AspNet.SignalR.Core/TaskAsyncHelper.cs
@@ -162,7 +162,7 @@ public static Task Series(Func<object, Task>[] tasks, object[] state)
private static void ExecuteOnFaulted(Action<AggregateException, object> handler, object state, AggregateException exception)
{
// observe Exception
-#if !WINDOWS_PHONE && !SILVERLIGHT && !NETFX_CORE
+#if !WINDOWS_PHONE && !SILVERLIGHT && !NETFX_CORE && !__ANDROID__ && !IOS
Trace.TraceError("SignalR exception thrown by Task: {0}", exception);
#endif
handler(exception, state);
Please sign in to comment.
Something went wrong with that request. Please try again.