Skip to content

Commit

Permalink
Updated dependency resolver to comply to latest signalr code
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrmz committed Apr 4, 2012
1 parent 5287c09 commit fd2a296
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -62,11 +62,11 @@ public static class DependencyResolverExtensions
private static int GetRoleInstanceNumber()
{
return 1;
var roleInstanceId = RoleEnvironment.CurrentRoleInstance.Id;
/*var roleInstanceId = RoleEnvironment.CurrentRoleInstance.Id;
var li1 = roleInstanceId.LastIndexOf(".");
var li2 = roleInstanceId.LastIndexOf("_");
var roleInstanceNo = roleInstanceId.Substring(Math.Max(li1, li2) + 1);
return Int32.Parse(roleInstanceNo);
return Int32.Parse(roleInstanceNo);*/
}
}
}
Expand Up @@ -65,7 +65,7 @@ void MessageAvailable()
this.Complete(result, false);
}

public static MessageResult End(IAsyncResult ar)
public new static MessageResult End(IAsyncResult ar)
{
return TypedAsyncResult<MessageResult>.End(ar);
}
Expand Down

0 comments on commit fd2a296

Please sign in to comment.