protected GrainStreamHandle(SerializationInfo info, StreamingContext context)   //so we do need the activation context after all...
        {
            _ctx = context.Context as IStreamContext;
            Require.NotNull(_ctx, $"Deserializing {nameof(GrainStreamHandle<T>)} requires GrainContext!");

            SubscriptionKey = (Stream.SubKey)info.GetValue("subKey", typeof(Stream.SubKey));
        }
Exemplo n.º 2
0
        public static TestFixtureData FromStreamContext(IStreamContext input)
        {
            if (input == null)
            {
                throw new ArgumentNullException("input");
            }
            var result = Parse(input.ReadAllText());

            result.BaseUri = input.Uri;
            return(result);
        }
 public GrainStreamHandle(Stream.SubKey subKey, IStreamContext ctx)
 {
     SubscriptionKey = subKey;
     _ctx            = ctx;
 }
Exemplo n.º 4
0
 public StreamLogic(IStreamContext stream)
 {
     _stream = stream;
 }
Exemplo n.º 5
0
 public StreamProviderManagerAdaptor(IStreamContext ctx)
 {
     _ctx = ctx;
 }
Exemplo n.º 6
0
 public GrainStreamProviderAdaptor(IStreamContext ctx, string providerName)
 {
     _ctx = ctx;
     Name = providerName;
 }
 public GrainStreamClient(IStreamContext ctx, Stream stream)
 {
     _ctx       = ctx;
     _placement = _ctx.Placement;
     _stream    = stream;
 }