Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(532)

Unified Diff: lib/service_scope.dart

Issue 766663007: Prepare pubspec/CHANGELOG for version 0.1.2 (Closed) Base URL: git@github.com:dart-lang/gcloud.git@master
Patch Set: Rebased Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/http.dart ('k') | lib/storage.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/service_scope.dart
diff --git a/lib/service_scope.dart b/lib/service_scope.dart
index 986af1d3d1a2a5622510a7d62848e718edae3c48..856365c77de4b7f1164857e86dd51c56bb6eac7a 100644
--- a/lib/service_scope.dart
+++ b/lib/service_scope.dart
@@ -63,6 +63,15 @@
/// print('Server application shut down cleanly');
/// });
/// }
+///
+/// As an example, the `package:appengine/appengine.dart` package runs request
+/// handlers inside a service scope, which has most `package:gcloud` services
+/// registered.
+///
+/// The core application code can then be independent of `package:appengine`
+/// and instead depend only on the services needed (e.g.
+/// `package:gcloud/storage.dart`) by using getters in the service library (e.g.
+/// the `storageService`) which are implemented with service scope lookups.
library gcloud.service_scope;
import 'dart:async';
« no previous file with comments | « lib/http.dart ('k') | lib/storage.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698