/// <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; }
/// <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; }
/// <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; }
/// <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; }
/// <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; }
/// <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; }