コード例 #1
0
 /// <summary>
 /// Allows you to register all the functions on a Pojo Type that have been attributed as [JsonRpcMethod] to the specified sessionId
 /// </summary>
 /// <param name="sessionID">The session to register against</param>
 /// <param name="instance">The instance containing JsonRpcMethods to register</param>
 public static void RegisterInstance(string sessionID, object instance)
 {
     ServiceBinder.BindService(sessionID, instance);
 }
コード例 #2
0
 protected JsonRpcService()
 {
     ServiceBinder.BindService(Handler.DefaultSessionId(), this);
 }
コード例 #3
0
 protected JsonRpcService(string sessionID)
 {
     ServiceBinder.BindService(sessionID, this);
 }
コード例 #4
0
 protected JsonRpcService(string sessionID)
 {
     ServiceBinder.BindService(sessionID, typeof(JsonRpcService));
 }