Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of <c>EventNumberSnapshotProvider</c> class.
 /// </summary>
 /// <param name="acDomain"></param>
 /// <param name="eventStorage">The instance of the event storage that is used for initializing the <c>EventNumberSnapshotProvider</c> class.</param>
 /// <param name="snapshotStorage">The instance of the snapshot storage this is used for initializing the <c>EventNumberSnapshotProvider</c> class.</param>
 /// <param name="option">The snapshot provider option.</param>
 /// <param name="numOfEvents">The maximum number of events.</param>
 public EventNumberSnapshotProvider(IAcDomain acDomain, IStorage eventStorage, IStorage snapshotStorage, SnapshotProviderOption option, int numOfEvents)
     : base(eventStorage, snapshotStorage, option)
 {
     this._acDomain    = acDomain;
     this._numOfEvents = numOfEvents;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of <c>StorageBasedSnapshotProvider</c> class.
 /// </summary>
 /// <param name="eventStorage">The instance of the event storage that is used for initializing the <c>StorageBasedSnapshotProvider</c> class.</param>
 /// <param name="snapshotStorage">The instance of the snapshot storage this is used for initializing the <c>StorageBasedSnapshotProvider</c> class.</param>
 /// <param name="option">The snapshot provider option.</param>
 public StorageBasedSnapshotProvider(IStorage eventStorage, IStorage snapshotStorage, SnapshotProviderOption option)
     : base(option)
 {
     this.eventStorage = eventStorage;
     this.snapshotStorage = snapshotStorage;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of <c>SnapshotProvider</c> class.
 /// </summary>
 /// <param name="option">The <see cref="Anycmd.Snapshots.Providers.SnapshotProviderOption"/> value
 /// which is used for initializing the <c>SnapshotProvider</c> class.</param>
 protected SnapshotProvider(SnapshotProviderOption option)
 {
     this._option = option;
 }
 public StorageBasedSnapshotProvider(IStorage eventStorage, IStorage snapshotStorage, SnapshotProviderOption option)
     : base(option)
 {
     this.eventStorage    = eventStorage;
     this.snapshotStorage = snapshotStorage;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of <c>EventNumberSnapshotProvider</c> class.
 /// </summary>
 /// <param name="eventStorage">The instance of the event storage that is used for initializing the <c>EventNumberSnapshotProvider</c> class.</param>
 /// <param name="snapshotStorage">The instance of the snapshot storage this is used for initializing the <c>EventNumberSnapshotProvider</c> class.</param>
 /// <param name="option">The snapshot provider option.</param>
 /// <param name="numOfEvents">The maximum number of events.</param>
 public EventNumberSnapshotProvider(IStorage eventStorage, IStorage snapshotStorage, SnapshotProviderOption option, int numOfEvents)
     : base(eventStorage, snapshotStorage, option)
 {
     this.numOfEvents = numOfEvents;
 }
 /// <summary>
 /// Initializes a new instance of <c>StorageBasedSnapshotProvider</c> class.
 /// </summary>
 /// <param name="eventStorage">The instance of the event storage that is used for initializing the <c>StorageBasedSnapshotProvider</c> class.</param>
 /// <param name="snapshotStorage">The instance of the snapshot storage this is used for initializing the <c>StorageBasedSnapshotProvider</c> class.</param>
 /// <param name="option">The snapshot provider option.</param>
 protected StorageBasedSnapshotProvider(IStorage eventStorage, IStorage snapshotStorage, SnapshotProviderOption option)
     : base(option)
 {
     this._eventStorage = eventStorage;
     this._snapshotStorage = snapshotStorage;
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of <c>StorageBasedSnapshotProvider</c> class.
 /// </summary>
 /// <param name="eventStorage">The instance of the event storage that is used for initializing the <c>StorageBasedSnapshotProvider</c> class.</param>
 /// <param name="snapshotStorage">The instance of the snapshot storage this is used for initializing the <c>StorageBasedSnapshotProvider</c> class.</param>
 /// <param name="option">The snapshot provider option.</param>
 protected StorageBasedSnapshotProvider(IStorage eventStorage, IStorage snapshotStorage, SnapshotProviderOption option)
     : base(option)
 {
     this._eventStorage    = eventStorage;
     this._snapshotStorage = snapshotStorage;
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Initializes a new instance of <c>SnapshotProvider</c> class.
 /// </summary>
 /// <param name="option">The <see cref="Apworks.Snapshots.Providers.SnapshotProviderOption"/> value
 /// which is used for initializing the <c>SnapshotProvider</c> class.</param>
 public SnapshotProvider(SnapshotProviderOption option)
 {
     this.option = option;
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Initializes a new instance of <c>SnapshotProvider</c> class.
 /// </summary>
 /// <param name="option">The <see cref="Apworks.Snapshots.Providers.SnapshotProviderOption"/> value
 /// which is used for initializing the <c>SnapshotProvider</c> class.</param>
 public SnapshotProvider(SnapshotProviderOption option)
 {
     this.option = option;
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Initializes a new instance of <c>SnapshotProvider</c> class.
 /// </summary>
 /// <param name="option">The <see cref="Anycmd.Snapshots.Providers.SnapshotProviderOption"/> value
 /// which is used for initializing the <c>SnapshotProvider</c> class.</param>
 protected SnapshotProvider(SnapshotProviderOption option)
 {
     this._option = option;
 }
 /// <summary>
 /// Initializes a new instance of <c>EventNumberSnapshotProvider</c> class.
 /// </summary>
 /// <param name="snapshotSerializer"></param>
 /// <param name="eventStorage">The instance of the event storage that is used for initializing the <c>EventNumberSnapshotProvider</c> class.</param>
 /// <param name="snapshotStorage">The instance of the snapshot storage this is used for initializing the <c>EventNumberSnapshotProvider</c> class.</param>
 /// <param name="option">The snapshot provider option.</param>
 /// <param name="numOfEvents">The maximum number of events.</param>
 public EventNumberSnapshotProvider(ISnapshotSerializer snapshotSerializer, IStorage eventStorage, IStorage snapshotStorage, SnapshotProviderOption option, int numOfEvents)
     : base(eventStorage, snapshotStorage, option)
 {
     this._snapshotSerializer = snapshotSerializer;
     this._numOfEvents        = numOfEvents;
 }