public void RegisterSingleton <T>()
 {
     lock (_rpcObjects)
     {
         var v = new RpcObjectTypeHandle(typeof(T));
         _rpcObjects.Add(v);
     }
 }
 private RpcObjectHandle CreateObjectHandleFromTypeHandle(RpcObjectTypeHandle handle)
 {
     lock (_rpcObjects)
     {
         var created = handle.CreateObject();
         _rpcObjects.Remove(handle);
         _rpcObjects.Add(created);
         return(created);
     }
 }