Example #1
0
        static Bootstrap()
        {
            rng                = new Random();
            clock              = new BridgeClock();
            config             = TreeEnvironmentConfigs.Release;
            sharedDrawingState = new SharedDrawingState();

            treeStateFactory = new TreeStateFactory(rng, clock, config);
            treeStateStore   = new TreeStateStore(config.SettingPrefix);
        }
Example #2
0
 public TreeAppContext(
     IClock clock,
     TreeEnvironmentConfig config,
     TreeStateStore treeStateStore,
     TreeStateFactory treeStateFactory,
     SharedDrawingState sharedDrawingState
     )
 {
     this.clock              = clock ?? throw new ArgumentNullException(nameof(clock));
     this.config             = config ?? throw new ArgumentNullException(nameof(config));
     this.treeStateStore     = treeStateStore ?? throw new ArgumentNullException(nameof(treeStateStore));
     this.treeStateFactory   = treeStateFactory ?? throw new ArgumentNullException(nameof(treeStateFactory));
     this.sharedDrawingState = sharedDrawingState ?? throw new ArgumentNullException(nameof(sharedDrawingState));
 }