C# Class Platform.StreamStorage.Azure.AzureEventStoreChunk

Represents collection of events within a Windows Azure Blob (residing inside a CloudPageBlob). It can be opened as mutable or as read-only.
Inheritance: IDisposable
Show file Open project: Lokad/lokad-data-platform Class Usage Examples

Public Methods

Method Description
Append ( string streamId, IEnumerable eventData ) : ChunkAppendResult
AzureEventStoreChunk ( Microsoft.WindowsAzure.StorageClient.CloudPageBlob blob, long offset, long size ) : System
CreateNewForWriting ( Microsoft.WindowsAzure.StorageClient.CloudPageBlob blob ) : AzureEventStoreChunk
Dispose ( ) : void
OpenExistingForReading ( Microsoft.WindowsAzure.StorageClient.CloudPageBlob blob, long length ) : AzureEventStoreChunk
OpenExistingForWriting ( Microsoft.WindowsAzure.StorageClient.CloudPageBlob blob, long offset, long length ) : AzureEventStoreChunk
ReadAll ( long startOffset, long endOffset, int maxRecordCount ) : IEnumerable
Reset ( ) : void
WriteProc ( int offset, Stream source ) : void

Private Methods

Method Description
BufferTip ( long position, int count ) : byte[]
SetLength ( Microsoft.WindowsAzure.StorageClient.CloudPageBlob blob, long newLength, int timeout = 10000 ) : void

Method Details

Append() public method

public Append ( string streamId, IEnumerable eventData ) : ChunkAppendResult
streamId string
eventData IEnumerable
return ChunkAppendResult

AzureEventStoreChunk() public method

public AzureEventStoreChunk ( Microsoft.WindowsAzure.StorageClient.CloudPageBlob blob, long offset, long size ) : System
blob Microsoft.WindowsAzure.StorageClient.CloudPageBlob
offset long
size long
return System

CreateNewForWriting() public static method

public static CreateNewForWriting ( Microsoft.WindowsAzure.StorageClient.CloudPageBlob blob ) : AzureEventStoreChunk
blob Microsoft.WindowsAzure.StorageClient.CloudPageBlob
return AzureEventStoreChunk

Dispose() public method

public Dispose ( ) : void
return void

OpenExistingForReading() public static method

public static OpenExistingForReading ( Microsoft.WindowsAzure.StorageClient.CloudPageBlob blob, long length ) : AzureEventStoreChunk
blob Microsoft.WindowsAzure.StorageClient.CloudPageBlob
length long
return AzureEventStoreChunk

OpenExistingForWriting() public static method

public static OpenExistingForWriting ( Microsoft.WindowsAzure.StorageClient.CloudPageBlob blob, long offset, long length ) : AzureEventStoreChunk
blob Microsoft.WindowsAzure.StorageClient.CloudPageBlob
offset long
length long
return AzureEventStoreChunk

ReadAll() public method

public ReadAll ( long startOffset, long endOffset, int maxRecordCount ) : IEnumerable
startOffset long
endOffset long
maxRecordCount int
return IEnumerable

Reset() public method

public Reset ( ) : void
return void

WriteProc() public method

public WriteProc ( int offset, Stream source ) : void
offset int
source Stream
return void