public Task UnregisterConsumer(GuidId subscriptionId, StreamId streamId, string streamProvider) { if (!IsImplicitSubscriber(subscriptionId, streamId)) { throw new ArgumentOutOfRangeException(streamId.ToString(), "Only implicit subscriptions are supported."); } return(Task.CompletedTask); }
public Task RegisterConsumer(GuidId subscriptionId, StreamId streamId, string streamProvider, IStreamConsumerExtension streamConsumer, IStreamFilterPredicateWrapper filter) { if (!IsImplicitSubscriber(streamConsumer, streamId)) { throw new ArgumentOutOfRangeException(streamId.ToString(), "Only implicit subscriptions are supported."); } return(Task.CompletedTask); }
public Task UnregisterConsumer(GuidId subscriptionId, StreamId streamId, string streamProvider) { if (!IsImplicitSubscriber(subscriptionId, streamId)) { throw new ArgumentOutOfRangeException(streamId.ToString(), "Only implicit subscriptions are supported."); } throw new OrleansException("Dynamic UnregisterConsumer are not supported on implicit subscribed consumer"); }
public Task <List <GuidId> > GetAllSubscriptions(StreamId streamId, IStreamConsumerExtension streamConsumer) { if (!IsImplicitSubscriber(streamConsumer, streamId)) { throw new ArgumentOutOfRangeException(streamId.ToString(), "Only implicit subscriptions are supported."); } return(Task.FromResult(new List <GuidId> { GuidId.GetGuidId(streamConsumer.GetPrimaryKey()) })); }
public GuidId CreateSubscriptionId(StreamId streamId, IStreamConsumerExtension streamConsumer) { GrainId grainId = GrainExtensions.GetGrainId(streamConsumer); Guid subscriptionGuid; if (!implicitTable.TryGetImplicitSubscriptionGuid(grainId, streamId, out subscriptionGuid)) { throw new ArgumentOutOfRangeException(streamId.ToString(), "Only implicit subscriptions are supported."); } return(GuidId.GetGuidId(subscriptionGuid)); }
public override string ToString() { return(streamId.ToString()); }