Esempio n. 1
0
        public void GoHard()
        {
            var w = new MethodWeb();
            var n = new NavigatorV2(w);

            w.RegisterDependency(n);
            ThreadPool.QueueUserWorkItem(o =>
            {
                for (var i = 0; i < 0xFFFF; ++i)
                {
                    new EmptyPresenter(
                        w)
                    .Setup();
                }
            });

            ThreadPool.QueueUserWorkItem(o =>
            {
                for (var i = 0; i < 0xFF; ++i)
                {
                    n.Present <EmptyPresenter>();
                }
            });

            for (var i = 0; i < 0xFFF; ++i)
            {
                n.Unregister <EmptyPresenter>();
            }
        }
 public SetupHomeCommand(
     HomeUi ui,
     MethodWeb web)
 {
     this.ui  = ui;
     this.web = web;
 }
 public SetupLicenseCommand(
     LicenseUi ui,
     MethodWeb web)
 {
     this.ui  = ui;
     this.web = web;
 }
Esempio n. 4
0
 public SetupAccessCommand(
     PasswordHolder passwords,
     MethodWeb web)
 {
     this.passwords = passwords;
     this.web       = web;
 }
 public SetupTimestampsCommand(
     TimestampsUi ui,
     ShellUi shell,
     MethodWeb web)
 {
     this.ui    = ui;
     this.shell = shell;
     this.web   = web;
 }
Esempio n. 6
0
 public SetupStatisticsCommand(
     StatisticsUi ui,
     ShellUi shell,
     MethodWeb web)
 {
     this.ui    = ui;
     this.shell = shell;
     this.web   = web;
 }
Esempio n. 7
0
 public HomePresenter(
     HomeUi ui,
     ShellUi shell,
     MethodWeb web)
     : base(ui, shell)
 {
     this.ui  = ui;
     this.web = web;
 }
 public DailyPresenter(
     DailyUi ui,
     ShellUi shell,
     MethodWeb web)
     : base(ui, shell)
 {
     this.ui  = ui;
     this.web = web;
 }
 public HomePresenter(
     HomeUi ui,
     MethodWeb web)
     : base(ui, null)
 {
     this.ui  = ui;
     this.web = web;
     this.timerHandlerFinished = new ManualResetEvent(true);
 }
Esempio n. 10
0
 public SetupLoginCommand(
     LoginUi ui,
     MethodWeb web,
     TimeSpan loginDuration)
 {
     this.ui            = ui;
     this.web           = web;
     this.loginDuration = loginDuration;
 }
Esempio n. 11
0
 public SetupShutdownCommand(
     Ui cleanupUi,
     Do cleanup,
     MethodWeb web)
 {
     this.cleanupUi = cleanupUi;
     this.cleanup   = cleanup;
     this.web       = web;
 }
Esempio n. 12
0
 public TimestampsPresenter(
     TimestampsUi ui,
     ShellUi shell,
     MethodWeb web)
     : base(ui, shell)
 {
     this.ui  = ui;
     this.web = web;
 }
Esempio n. 13
0
 public SetupMainCommand(
     MainUi ui,
     MethodWeb web,
     SettingsHolder settings)
 {
     this.ui       = ui;
     this.web      = web;
     this.settings = settings;
 }
Esempio n. 14
0
 public SetupLoginCommand(
     LoginUi ui,
     MethodWeb web,
     int loginDurationMinutes = 15)
     : this(
         ui,
         web,
         TimeSpan.FromMinutes(
             loginDurationMinutes))
 {
 }
Esempio n. 15
0
 public SetupHomeNavCommand(
     HomeNavUi ui,
     ShellUi shell,
     NavLogicReader navReader,
     MethodWeb web)
 {
     this.ui        = ui;
     this.shell     = shell;
     this.navReader = navReader;
     this.web       = web;
 }
Esempio n. 16
0
 public SetupDailyCommand(
     DailyUi ui,
     ShellUi shell,
     UiReader uiReader,
     MethodWeb web)
 {
     this.ui       = ui;
     this.shell    = shell;
     this.uiReader = uiReader;
     this.web      = web;
 }
 public SetupHomeCommand(
     HomeUi ui,
     ShellUi shell,
     Gen <MethodRunner, TimestampReaderWriter> newReaderWriter,
     Gen <MethodWeb, DataWatcher> newDataWatcher,
     MethodWeb web)
 {
     this.ui              = ui;
     this.shell           = shell;
     this.newReaderWriter = newReaderWriter;
     this.newDataWatcher  = newDataWatcher;
     this.web             = web;
 }
Esempio n. 18
0
 public SetupLogCommand(
     LogUi ui,
     ShellUi shell,
     SettingsHolder settings,
     MethodWeb web)
 {
     this.ui    = ui;
     this.shell = shell;
     settings   = settings
                  ?? new SettingsHolder();
     settings.StatisticsEnabled = falsity;
     this.settings = settings;
     this.web      = web;
 }
Esempio n. 19
0
            protected Context()
            {
                var w = new MethodWeb();

                this.applier = new LabelApplier(w);
                this.ui      = A.Fake <LoginUiV2>();
                this.uiRW    = new UiReaderWriter();
                this.labels  = new Labels();

                w.RegisterDependency(
                    this.uiRW);
                w.RegisterDependency(
                    this.labels);
                this.runner = w;
            }
Esempio n. 20
0
        public virtual void CopyTo(
            MethodWeb other)
        {
            ICollection <Dependency> depCopy;

            lock (this.locker)
            {
                depCopy = new LinkedList <Dependency>(
                    this.dependencies);
            }

            foreach (var dep in depCopy)
            {
                other.RegisterDependency(
                    dep?.Content,
                    dep?.Name);
            }
        }
Esempio n. 21
0
 public SetupLogCommand(
     LogUi ui,
     ShellUi shell,
     LogEditorUi editUi,
     LogStatisticsUi statsUi,
     SettingsHolder settings,
     MethodWeb web)
 {
     this.ui      = ui;
     this.editUi  = editUi;
     this.shell   = shell;
     this.statsUi = statsUi;
     settings     = settings
                    ?? new SettingsHolder();
     settings.StatisticsEnabled = truth;
     this.settings = settings;
     this.web      = web;
 }
Esempio n. 22
0
 public FileIOBitter(
     MethodWeb web)
 {
     this.web = web;
 }
Esempio n. 23
0
 public TcpIpIOBitter(
     MethodWeb web)
 {
     this.web = web;
 }
Esempio n. 24
0
 public IOBitterFactory(
     MethodWeb web)
 {
     this.web = web;
 }
Esempio n. 25
0
 private void setWeb(MethodWeb web)
 {
     this.web = web;
 }
Esempio n. 26
0
 public HttpClientFactory(MethodWeb web)
 {
     this.web = web;
 }
Esempio n. 27
0
 public SetupShutdownCommand(
     Do cleanup,
     MethodWeb web)
     : this(null, cleanup, web)
 {
 }
 public FileDataWatcher(
     MethodWeb web)
     : base(web)
 {
     this.web = web;
 }
Esempio n. 29
0
 public SetupShutdownCommand(
     MethodWeb web)
     : this(null, null, web)
 {
 }