コード例 #1
0
        public ExGatherTag()
        {
            this.beforeGatherGpRegenStrategy = new BeforeGatherGpRegenStrategy(
                this.CordialStock,
                new BeforeGatherGpRegenStrategyLogger(
                    this.Logger,
                    new GathererLogger(this.Logger),
                    new GpRegeneratorLogger(this.Logger),
                    new CordialConsumerLogger(this.Logger),
                    new ProfileBehaviorLogger(this)
                    )
                );
            this.afterGatherGpRegenStrategy = new AfterGatherGpRegenStrategy(
                this.CordialStock,
                new CordialConsumerLogger(this.Logger)
                );

            if (Rotations == null)
            {
                lock (Lock)
                {
                    if (Rotations == null)
                    {
                        Rotations = LoadRotationTypes();
                    }
                }
            }
        }
コード例 #2
0
 /// <summary>
 /// Logs the strategy status report
 /// </summary>
 public void LogReport(IGpRegenStrategy strategy)
 {
     this.logger.Info(strategy.ToString());
 }