Beispiel #1
0
            /// <summary>
            /// Packs the passed Package, using the existing strategy.
            /// </summary>
            /// <param name="package"></param>
            public void Pack(Package package)
            {
                // Output the current strategy to the log.
                Console.WriteLine(Strategy.GetType().Name);

                // Pack the package using current strategy.
                Strategy.Pack(package);
            }
Beispiel #2
0
        /// <summary>
        /// Packs the passed Package, using the existing strategy.
        /// </summary>
        /// <param name="package"></param>
        public void Pack(Package package)
        {
            // Output the current strategy to the log.
            Logging.LineSeparator(Strategy.GetType().Name);

            // Pack the package using current strategy.
            Strategy.Pack(package);
        }