コード例 #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;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #4
0
 public StorageBasedSnapshotProvider(IStorage eventStorage, IStorage snapshotStorage, SnapshotProviderOption option)
     : base(option)
 {
     this.eventStorage    = eventStorage;
     this.snapshotStorage = snapshotStorage;
 }
コード例 #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;
 }
コード例 #6
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;
 }
コード例 #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;
 }
コード例 #8
0
ファイル: SnapshotProvider.cs プロジェクト: zuhuizou/Apworks
 /// <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;
 }
コード例 #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;
 }
コード例 #10
0
ファイル: SnapshotProvider.cs プロジェクト: zszqwe/anycmd
 /// <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;
 }
コード例 #11
0
 /// <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;
 }