/// <summary>
        ///     Parses and loads the persisted state data from the provided object.
        /// </summary>
        /// <param name="stateData">The state data loaded from persistent storage.</param>
        /// <exception cref="System.ArgumentNullException"></exception>
        public void Initialise(StatementApplicationState stateData)
        {
            if (stateData == null)
            {
                throw new ArgumentNullException(nameof(stateData));
            }

            this.budgetHash     = 0;
            this.sortedByBucket = stateData.SortByBucket ?? false;
        }
Example #2
0
        private void OnApplicationStateRequested(ApplicationStateRequestedMessage message)
        {
            StatementApplicationState statementMetadata = this.transactionService.PreparePersistentStateData();

            message.PersistThisModel(statementMetadata);
        }