public async Task <IValueProvider> BindAsync(IStorageBlob blob, ValueBindingContext context)
            {
                WatchableCloudBlobStream watchableStream = await WriteBlobArgumentBinding.BindStreamAsync(blob,
                                                                                                          context, _blobWrittenWatcherGetter.Value);

                return(new CloudBlobStreamValueBinder(blob, watchableStream));
            }
Exemplo n.º 2
0
 public ObjectValueBinder(IStorageBlob blob, WatchableCloudBlobStream stream,
                          ICloudBlobStreamBinder <TValue> objectBinder)
 {
     _blob         = blob;
     _stream       = stream;
     _objectBinder = objectBinder;
 }
            public async Task <IValueProvider> BindAsync(IStorageBlob blob, ValueBindingContext context)
            {
                WatchableCloudBlobStream watchableStream = await WriteBlobArgumentBinding.BindStreamAsync(blob,
                                                                                                          context, _blobWrittenWatcherGetter.Value);

                const int DefaultBufferSize = 1024;

                TextWriter writer = new StreamWriter(watchableStream, Encoding.UTF8, DefaultBufferSize, leaveOpen: true);

                return(new TextWriterValueBinder(blob, watchableStream, writer));
            }
 public TextWriterValueBinder(IStorageBlob blob, WatchableCloudBlobStream stream, TextWriter value)
 {
     _blob   = blob;
     _stream = stream;
     _value  = value;
 }
Exemplo n.º 5
0
 public ByteArrayValueBinder(IStorageBlob blob, WatchableCloudBlobStream stream)
 {
     _blob   = blob;
     _stream = stream;
 }
 public ByteArrayValueBinder(IStorageBlob blob, WatchableCloudBlobStream stream)
 {
     _blob = blob;
     _stream = stream;
 }
 public WriteStreamValueBinder(IStorageBlob blob, WatchableCloudBlobStream stream)
 {
     _blob = blob;
     _stream = stream;
 }
 public TextWriterValueBinder(IStorageBlob blob, WatchableCloudBlobStream stream, TextWriter value)
 {
     _blob = blob;
     _stream = stream;
     _value = value;
 }