Not intended to be used outside Platform.Core itself. Maintains a pointer to a specific event within the event store using the metadata of a Windows Azure cloud page blob.
Inheritance: IEventPointer
コード例 #1
0
        public static AzureEventStore OpenExistingForReading(AzureStoreConfiguration config, EventStoreId container)
        {
            var blob  = config.GetPageBlob(container.Name + "/stream.dat");
            var check = AzureEventPointer.OpenReadable(blob);

            blob.FetchAttributes();
            var store = AzureEventStoreChunk.OpenExistingForReading(blob, blob.Properties.Length);

            return(new AzureEventStore(container, store, check));
        }
コード例 #2
0
        public static AzureEventStore OpenExistingForWriting(AzureStoreConfiguration config, EventStoreId container)
        {
            var blob   = config.GetPageBlob(container.Name + "/stream.dat");
            var check  = AzureEventPointer.OpenWriteable(blob);
            var offset = check.Read();
            var length = blob.Properties.Length;
            var store  = AzureEventStoreChunk.OpenExistingForWriting(blob, offset, length);

            return(new AzureEventStore(container, store, check));
        }
コード例 #3
0
        public static AzureEventStore CreateNewForWriting(AzureStoreConfiguration config, EventStoreId container)
        {
            var blob = config.GetPageBlob(container.Name + "/stream.dat");

            blob.Container.CreateIfNotExist();

            var store = AzureEventStoreChunk.CreateNewForWriting(blob);
            var check = AzureEventPointer.OpenWriteable(blob);

            return(new AzureEventStore(container, store, check));
        }
コード例 #4
0
 public AzureEventStore(EventStoreId container, AzureEventStoreChunk store, AzureEventPointer checkpoint)
 {
     Container = container;
     _store = store;
     _checkpoint = checkpoint;
 }
コード例 #5
0
 public AzureEventStore(EventStoreId container, AzureEventStoreChunk store, AzureEventPointer checkpoint)
 {
     Container   = container;
     _store      = store;
     _checkpoint = checkpoint;
 }