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)); }
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; }
public StreamLogic(IStreamContext stream) { _stream = stream; }
public StreamProviderManagerAdaptor(IStreamContext ctx) { _ctx = ctx; }
public GrainStreamProviderAdaptor(IStreamContext ctx, string providerName) { _ctx = ctx; Name = providerName; }
public GrainStreamClient(IStreamContext ctx, Stream stream) { _ctx = ctx; _placement = _ctx.Placement; _stream = stream; }