Exemple #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);
            }
Exemple #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);
        }
Exemple #3
0
 public void Pack(IPackage package)
 {
     _packagingStrategy.Pack(package);
 }