Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WinRT support #59

Merged
merged 2 commits into from
Oct 13, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion Refit-VisualStudio.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.30723.0
VisualStudioVersion = 12.0.30501.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Refit-Portable", "Refit\Refit-Portable.csproj", "{E315020F-33BC-4D85-BC6E-8346F06F1112}"
EndProject
Expand All @@ -13,60 +13,90 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Refit-Tests-Net45", "Refit-
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InterfaceStubGenerator", "InterfaceStubGenerator\InterfaceStubGenerator.csproj", "{5694F8AD-7A15-4717-B649-1749A311300B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Refit-WinRT45", "Refit\Refit-WinRT45.csproj", "{27DDD1C6-4037-419F-8682-100C71D5AD6F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|ARM = Debug|ARM
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|ARM = Release|ARM
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E315020F-33BC-4D85-BC6E-8346F06F1112}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E315020F-33BC-4D85-BC6E-8346F06F1112}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E315020F-33BC-4D85-BC6E-8346F06F1112}.Debug|ARM.ActiveCfg = Debug|Any CPU
{E315020F-33BC-4D85-BC6E-8346F06F1112}.Debug|x64.ActiveCfg = Debug|Any CPU
{E315020F-33BC-4D85-BC6E-8346F06F1112}.Debug|x86.ActiveCfg = Debug|Any CPU
{E315020F-33BC-4D85-BC6E-8346F06F1112}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E315020F-33BC-4D85-BC6E-8346F06F1112}.Release|Any CPU.Build.0 = Release|Any CPU
{E315020F-33BC-4D85-BC6E-8346F06F1112}.Release|ARM.ActiveCfg = Release|Any CPU
{E315020F-33BC-4D85-BC6E-8346F06F1112}.Release|x64.ActiveCfg = Release|Any CPU
{E315020F-33BC-4D85-BC6E-8346F06F1112}.Release|x86.ActiveCfg = Release|Any CPU
{252CE1CA-19FA-4445-A3C2-E4D6C80A935A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{252CE1CA-19FA-4445-A3C2-E4D6C80A935A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{252CE1CA-19FA-4445-A3C2-E4D6C80A935A}.Debug|ARM.ActiveCfg = Debug|Any CPU
{252CE1CA-19FA-4445-A3C2-E4D6C80A935A}.Debug|x64.ActiveCfg = Debug|Any CPU
{252CE1CA-19FA-4445-A3C2-E4D6C80A935A}.Debug|x86.ActiveCfg = Debug|Any CPU
{252CE1CA-19FA-4445-A3C2-E4D6C80A935A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{252CE1CA-19FA-4445-A3C2-E4D6C80A935A}.Release|Any CPU.Build.0 = Release|Any CPU
{252CE1CA-19FA-4445-A3C2-E4D6C80A935A}.Release|ARM.ActiveCfg = Release|Any CPU
{252CE1CA-19FA-4445-A3C2-E4D6C80A935A}.Release|x64.ActiveCfg = Release|Any CPU
{252CE1CA-19FA-4445-A3C2-E4D6C80A935A}.Release|x86.ActiveCfg = Release|Any CPU
{1F309EA3-155C-4B66-84DE-7771237CCF6C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1F309EA3-155C-4B66-84DE-7771237CCF6C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1F309EA3-155C-4B66-84DE-7771237CCF6C}.Debug|ARM.ActiveCfg = Debug|ARM
{1F309EA3-155C-4B66-84DE-7771237CCF6C}.Debug|ARM.Build.0 = Debug|ARM
{1F309EA3-155C-4B66-84DE-7771237CCF6C}.Debug|x64.ActiveCfg = Debug|Any CPU
{1F309EA3-155C-4B66-84DE-7771237CCF6C}.Debug|x86.ActiveCfg = Debug|x86
{1F309EA3-155C-4B66-84DE-7771237CCF6C}.Debug|x86.Build.0 = Debug|x86
{1F309EA3-155C-4B66-84DE-7771237CCF6C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1F309EA3-155C-4B66-84DE-7771237CCF6C}.Release|Any CPU.Build.0 = Release|Any CPU
{1F309EA3-155C-4B66-84DE-7771237CCF6C}.Release|ARM.ActiveCfg = Release|ARM
{1F309EA3-155C-4B66-84DE-7771237CCF6C}.Release|ARM.Build.0 = Release|ARM
{1F309EA3-155C-4B66-84DE-7771237CCF6C}.Release|x64.ActiveCfg = Release|Any CPU
{1F309EA3-155C-4B66-84DE-7771237CCF6C}.Release|x86.ActiveCfg = Release|x86
{1F309EA3-155C-4B66-84DE-7771237CCF6C}.Release|x86.Build.0 = Release|x86
{5F52E5C6-9A0B-48B3-AE05-D8CB0B9CC605}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5F52E5C6-9A0B-48B3-AE05-D8CB0B9CC605}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5F52E5C6-9A0B-48B3-AE05-D8CB0B9CC605}.Debug|ARM.ActiveCfg = Debug|Any CPU
{5F52E5C6-9A0B-48B3-AE05-D8CB0B9CC605}.Debug|x64.ActiveCfg = Debug|Any CPU
{5F52E5C6-9A0B-48B3-AE05-D8CB0B9CC605}.Debug|x86.ActiveCfg = Debug|Any CPU
{5F52E5C6-9A0B-48B3-AE05-D8CB0B9CC605}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5F52E5C6-9A0B-48B3-AE05-D8CB0B9CC605}.Release|Any CPU.Build.0 = Release|Any CPU
{5F52E5C6-9A0B-48B3-AE05-D8CB0B9CC605}.Release|ARM.ActiveCfg = Release|Any CPU
{5F52E5C6-9A0B-48B3-AE05-D8CB0B9CC605}.Release|x64.ActiveCfg = Release|Any CPU
{5F52E5C6-9A0B-48B3-AE05-D8CB0B9CC605}.Release|x86.ActiveCfg = Release|Any CPU
{5694F8AD-7A15-4717-B649-1749A311300B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5694F8AD-7A15-4717-B649-1749A311300B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5694F8AD-7A15-4717-B649-1749A311300B}.Debug|ARM.ActiveCfg = Debug|Any CPU
{5694F8AD-7A15-4717-B649-1749A311300B}.Debug|x64.ActiveCfg = Debug|Any CPU
{5694F8AD-7A15-4717-B649-1749A311300B}.Debug|x86.ActiveCfg = Debug|Any CPU
{5694F8AD-7A15-4717-B649-1749A311300B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5694F8AD-7A15-4717-B649-1749A311300B}.Release|Any CPU.Build.0 = Release|Any CPU
{5694F8AD-7A15-4717-B649-1749A311300B}.Release|ARM.ActiveCfg = Release|Any CPU
{5694F8AD-7A15-4717-B649-1749A311300B}.Release|x64.ActiveCfg = Release|Any CPU
{5694F8AD-7A15-4717-B649-1749A311300B}.Release|x86.ActiveCfg = Release|Any CPU
{27DDD1C6-4037-419F-8682-100C71D5AD6F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{27DDD1C6-4037-419F-8682-100C71D5AD6F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{27DDD1C6-4037-419F-8682-100C71D5AD6F}.Debug|ARM.ActiveCfg = Debug|ARM
{27DDD1C6-4037-419F-8682-100C71D5AD6F}.Debug|ARM.Build.0 = Debug|ARM
{27DDD1C6-4037-419F-8682-100C71D5AD6F}.Debug|x64.ActiveCfg = Debug|x64
{27DDD1C6-4037-419F-8682-100C71D5AD6F}.Debug|x64.Build.0 = Debug|x64
{27DDD1C6-4037-419F-8682-100C71D5AD6F}.Debug|x86.ActiveCfg = Debug|x86
{27DDD1C6-4037-419F-8682-100C71D5AD6F}.Debug|x86.Build.0 = Debug|x86
{27DDD1C6-4037-419F-8682-100C71D5AD6F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{27DDD1C6-4037-419F-8682-100C71D5AD6F}.Release|Any CPU.Build.0 = Release|Any CPU
{27DDD1C6-4037-419F-8682-100C71D5AD6F}.Release|ARM.ActiveCfg = Release|ARM
{27DDD1C6-4037-419F-8682-100C71D5AD6F}.Release|ARM.Build.0 = Release|ARM
{27DDD1C6-4037-419F-8682-100C71D5AD6F}.Release|x64.ActiveCfg = Release|x64
{27DDD1C6-4037-419F-8682-100C71D5AD6F}.Release|x64.Build.0 = Release|x64
{27DDD1C6-4037-419F-8682-100C71D5AD6F}.Release|x86.ActiveCfg = Release|x86
{27DDD1C6-4037-419F-8682-100C71D5AD6F}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
29 changes: 29 additions & 0 deletions Refit/HtmlEncoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
//
using System;
using System.Collections.Generic;
#if !WINDOWS_APP
using System.Configuration;
#endif
using System.IO;
using System.Linq;
using System.Text;
Expand Down Expand Up @@ -474,7 +476,11 @@ internal static string HtmlDecode(string s)
int result = Entities.BinarySearch(new KeyValuePair<string, char>(entityName, ' '), new EntityNameComparer());
if (result >= 0)
{
#if !WINDOWS_APP
key = Entities[result].Value.ToString(Helpers.InvariantCulture);
#else
key = Entities[result].Value.ToString(); // What will this do?
#endif
}
}

Expand Down Expand Up @@ -920,4 +926,27 @@ public int Compare(KeyValuePair<string, char> x, KeyValuePair<string, char> y)
return String.Compare(x.Key, y.Key, StringComparison.Ordinal);
}
}

#if WINDOWS_APP
// Fine, I'll just make my own
static class Uri
{
static readonly Dictionary<char, int> hexDigits
= "0123456789abcdef".Select((c, i) => new {c, i})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uppercase A, B, C, D, E, F are also hex digits

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah good call. That'll teach me to push and go to sleep.

.ToDictionary(x => x.c, c => c.i);

public static bool IsHexDigit(char c)
{
return hexDigits.ContainsKey(c);
}

public static int FromHex(char digit)
{
if(!IsHexDigit(digit))
throw new ArgumentOutOfRangeException("digit");

return hexDigits[digit];
}
}
#endif
}
8 changes: 7 additions & 1 deletion Refit/HttpUtility.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if !SILVERLIGHT || WINDOWS_PHONE
#if !SILVERLIGHT || WINDOWS_PHONE || WINDOWS_APP
#define NET_4_0
#endif

Expand Down Expand Up @@ -39,7 +39,9 @@
using System.Collections.Specialized;
using System.Globalization;
using System.IO;
#if !WINDOWS_APP
using System.Security.Permissions;
#endif
using System.Text;

namespace System.Web
Expand Down Expand Up @@ -123,7 +125,11 @@ public static string UrlDecode(string str)

static char[] GetChars(MemoryStream b, Encoding e)
{
#if !WINDOWS_APP
return e.GetChars(b.GetBuffer(), 0, (int)b.Length);
#else
return e.GetChars(b.ToArray(), 0, (int) b.Length);
#endif
}

static void WriteCharBytes(IList buf, char ch, Encoding e)
Expand Down
156 changes: 156 additions & 0 deletions Refit/Refit-WinRT45.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
<?xml version="1.0" encoding="utf-8"?>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably also need to copy-paste the portable version as a WPA81 version

<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{27DDD1C6-4037-419F-8682-100C71D5AD6F}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Refit</RootNamespace>
<AssemblyName>Refit</AssemblyName>
<DefaultLanguage>en-US</DefaultLanguage>
<TargetPlatformVersion>8.1</TargetPlatformVersion>
<MinimumVisualStudioVersion>12</MinimumVisualStudioVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{BC8A1FFA-BEE3-4634-8014-F334798102B3};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<NuGetPackageImportStamp>61707e7c</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\WinRT45\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_APP</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<GenerateLibraryLayout>false</GenerateLibraryLayout>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\WinRT45\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_APP</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\ARM\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_APP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>ARM</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
<OutputPath>bin\ARM\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_APP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>ARM</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_APP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_APP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_APP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_APP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->
<ProjectReference Include="Refit-Portable.csproj">
<Project>{e315020f-33bc-4d85-bc6e-8346f06f1112}</Project>
<Name>Refit-Portable</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Compile Include="Attributes.cs" />
<Compile Include="Helpers.cs" />
<Compile Include="HtmlEncoder.cs" />
<Compile Include="HttpUtility.cs" />
<Compile Include="NameValueCollection.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RequestBuilder.cs" />
<Compile Include="RequestBuilderImplementation.cs" />
<Compile Include="RestService.cs" />
<Compile Include="Utility.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.Refit-WinRT45.config" />
</ItemGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json">
<HintPath>..\packages\Newtonsoft.Json.6.0.5\lib\netcore45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System.Net.Http.Extensions">
<HintPath>..\packages\Microsoft.Net.Http.2.2.28\lib\win8\System.Net.Http.Extensions.dll</HintPath>
</Reference>
<Reference Include="System.Net.Http.Primitives">
<HintPath>..\packages\Microsoft.Net.Http.2.2.28\lib\win8\System.Net.Http.Primitives.dll</HintPath>
</Reference>
</ItemGroup>
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '12.0' ">
<VisualStudioVersion>12.0</VisualStudioVersion>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
<Import Project="..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets" Condition="Exists('..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>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=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets'))" />
</Target>
<!-- 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>
4 changes: 2 additions & 2 deletions Refit/RequestBuilderImplementation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class RequestBuilderImplementation : IRequestBuilder

public RequestBuilderImplementation(Type targetInterface)
{
if (targetInterface == null || !targetInterface.IsInterface) {
if (targetInterface == null || !targetInterface.IsInterface()) {
throw new ArgumentException("targetInterface must be an Interface");
}

Expand Down Expand Up @@ -467,7 +467,7 @@ Dictionary<int, string> buildHeaderParameterMap(List<ParameterInfo> parameterLis

void determineReturnTypeInfo(MethodInfo methodInfo)
{
if (methodInfo.ReturnType.IsGenericType == false) {
if (methodInfo.ReturnType.IsGenericType() == false) {
if (methodInfo.ReturnType != typeof (Task)) {
goto bogusMethod;
}
Expand Down
Loading