Esempio n. 1
0
        private void cleanUpPreviousExecutionResult(Serialized client)
        {
            Debug.WriteLine("Deleting Reaction: " + notifierName);
            client.DeleteReactionDefinition(notifierName);

            Debug.WriteLine("Deleting aggregates of type: " + orderType);
            var deleteToken = client.DeleteAggregatesByType(orderType);

            client.DeleteAggregatesByType(orderType, deleteToken: deleteToken.DeleteToken);

            Debug.WriteLine("Clearing single projections: " + ordersProjections);
            client.RecreateSingleProjections(ordersProjections);

            Debug.WriteLine("Clearing aggregated projection: " + orderTotalsProjection);
            client.RecreateAggregatedProjections(orderTotalsProjection);
        }