Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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");
 }
Exemplo n.º 4
0
 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())
     }));
 }
Exemplo n.º 5
0
        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));
        }
Exemplo n.º 6
0
 public override string ToString()
 {
     return(streamId.ToString());
 }