コード例 #1
0
        public IAsyncStream <T> GetStream <T>(Guid id, string streamNamespace)
        {
            var streamId = StreamId.GetStreamId(id, Name, streamNamespace);

            return(providerRuntime.GetStreamDirectory().GetOrAddStream <T>(
                       streamId, () => new StreamImpl <T>(streamId, this, IsRewindable, this.runtimeClient)));
        }
コード例 #2
0
        public IAsyncStream <T> GetStream <T>(StreamId streamId)
        {
            var id = new InternalStreamId(Name, streamId);

            return(providerRuntime.GetStreamDirectory().GetOrAddStream <T>(
                       id,
                       () => new StreamImpl <T>(id, this, IsRewindable, this.runtimeClient)));
        }