File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,13 @@ class BucketResource extends SecureResource<BucketPermission> {
10
10
$bp.StorageListenerClient ? storageListenerClient})
11
11
: super (name, client) {
12
12
_storageListenerClient = storageListenerClient;
13
+
14
+ if (storageListenerClient == null ) {
15
+ _storageListenerClient = $bp.StorageListenerClient (
16
+ ClientChannelSingleton .instance.clientChannel);
17
+ } else {
18
+ _storageListenerClient = storageListenerClient;
19
+ }
13
20
}
14
21
15
22
@override
Original file line number Diff line number Diff line change @@ -7,6 +7,13 @@ class Schedule extends Resource {
7
7
{$p.ResourcesClient ? client, $sp.SchedulesClient ? schedulesClient})
8
8
: super (name, client) {
9
9
_schedulesClient = schedulesClient;
10
+
11
+ if (schedulesClient == null ) {
12
+ _schedulesClient =
13
+ $sp.SchedulesClient (ClientChannelSingleton .instance.clientChannel);
14
+ } else {
15
+ _schedulesClient = schedulesClient;
16
+ }
10
17
}
11
18
12
19
@override
Original file line number Diff line number Diff line change @@ -9,6 +9,13 @@ class Topic extends SecureResource<TopicPermission> {
9
9
{$p.ResourcesClient ? client, $tp.SubscriberClient ? subscriberClient})
10
10
: super (name, client) {
11
11
_subscriberClient = subscriberClient;
12
+
13
+ if (subscriberClient == null ) {
14
+ _subscriberClient =
15
+ $tp.SubscriberClient (ClientChannelSingleton .instance.clientChannel);
16
+ } else {
17
+ _subscriberClient = subscriberClient;
18
+ }
12
19
}
13
20
14
21
/// Register a [handler] to subscribe to messages sent to the topic.
You can’t perform that action at this time.
0 commit comments