Пример #1
0
        MessageWriter Get(string stream)
        {
            _source.Token.ThrowIfCancellationRequested();
            stream = stream.ToLowerInvariant();

            return(_writers.GetOrAdd(stream, s => {
                var container = _factory.GetContainerReference(stream);
                return CloudSetup.CreateAndInitWriter(container);
            }));
        }
Пример #2
0
 public GetStreamResponse GetReadAccess(string stream)
 {
     using (Metrics.StartTimer("api.read")) {
         var container = _client.GetContainerReference(stream);
         var signature = CloudSetup.GetReadAccessSignature(container);
         return(new GetStreamResponse {
             Signature = signature
         });
     }
 }