public SimpleStreamingReplicaGrain(Silo silo, IOptions <MySimpleStreamingOptions> options) { _silo = silo ?? throw new ArgumentNullException(nameof(silo)); _options = options?.Value ?? throw new ArgumentNullException(nameof(options)); }
public SimpleStreamingPublisherGrain(IOptions <MySimpleStreamingOptions> options, [PersistentState("State")] IPersistentState <SimpleStreamingPublisherGrainState> state) { _options = options?.Value ?? throw new ArgumentNullException(nameof(options)); _state = state ?? throw new ArgumentNullException(nameof(state)); }