Index: runtime/observatory/lib/src/repositories/context.dart |
diff --git a/runtime/observatory/lib/src/repositories/ports.dart b/runtime/observatory/lib/src/repositories/context.dart |
similarity index 61% |
copy from runtime/observatory/lib/src/repositories/ports.dart |
copy to runtime/observatory/lib/src/repositories/context.dart |
index 324ef7430e85c4667428f13d05761c8fe933352d..a088428894d1e5a9b62338fb2e1778a071e4b34b 100644 |
--- a/runtime/observatory/lib/src/repositories/ports.dart |
+++ b/runtime/observatory/lib/src/repositories/context.dart |
@@ -4,11 +4,12 @@ |
part of repositories; |
-class PortsRepository implements M.PortsRepository { |
- Future<M.Ports> get(M.IsolateRef i) async { |
+class ContextRepository extends M.ContextRepository { |
+ ContextRepository(); |
+ |
+ Future<M.Context> get(M.IsolateRef i, String id) async{ |
S.Isolate isolate = i as S.Isolate; |
assert(isolate != null); |
- final response = await isolate.invokeRpc('_getPorts', {}); |
- return new S.Ports(response); |
+ return (await isolate.getObject(id)) as S.Context; |
} |
} |