Skip to content
This repository has been archived by the owner on Dec 20, 2019. It is now read-only.

Commit

Permalink
Minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dajuric committed Jan 7, 2018
1 parent 0a4d937 commit 8d1d00b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Samples/ServerClientSample/Run.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,23 @@ set currPath="%cd%
set serverPath="%cd%\Server\bin\net47"
set clientPath="%cd%\Client\bin\net47"

if NOT EXIST %serverApp% (
if NOT EXIST %serverPath%\Server.exe (
echo Build 'Server' project first.
goto :eof
)

if NOT EXIST %clientApp% (
if NOT EXIST %clientPath%\Client.exe (
echo Build 'Client' project first.
goto :eof
)

cd %serverPath%
start Server.exe
timeout /T 1 > nul

cd %clientPath%
start Client.exe
timeout /T 1 > nul
start Client.exe

cd %currPath%
2 changes: 1 addition & 1 deletion Source/WebSocketRPC.JS/Components/JsDocGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ static string getReturn(XmlNode node)

static string getTypeName(Type type)
{
if (type.GetGenericTypeDefinition() != typeof(Task<>))
if (!type.IsGenericType || type.GetGenericTypeDefinition() != typeof(Task<>))
return type.Name;

return type.GenericTypeArguments.First().Name + " (Task)";
Expand Down

0 comments on commit 8d1d00b

Please sign in to comment.