Exemplo 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;
 }
Exemplo 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;
 }
Exemplo n.º 6
0
 public SetupStatisticsCommand(
     StatisticsUi ui,
     ShellUi shell,
     MethodWeb web)
 {
     this.ui    = ui;
     this.shell = shell;
     this.web   = web;
 }
Exemplo n.º 7
0
 public HomePresenter(
     HomeUi ui,
     ShellUi shell,
     MethodWeb web)
     : base(ui, shell)
 {
     this.ui  = ui;
     this.web = web;
 }
Exemplo n.º 8
0
 public DailyPresenter(
     DailyUi ui,
     ShellUi shell,
     MethodWeb web)
     : base(ui, shell)
 {
     this.ui  = ui;
     this.web = web;
 }
Exemplo n.º 9
0
 public HomePresenter(
     HomeUi ui,
     MethodWeb web)
     : base(ui, null)
 {
     this.ui  = ui;
     this.web = web;
     this.timerHandlerFinished = new ManualResetEvent(true);
 }
Exemplo n.º 10
0
 public SetupLoginCommand(
     LoginUi ui,
     MethodWeb web,
     TimeSpan loginDuration)
 {
     this.ui            = ui;
     this.web           = web;
     this.loginDuration = loginDuration;
 }
Exemplo n.º 11
0
 public SetupShutdownCommand(
     Ui cleanupUi,
     Do cleanup,
     MethodWeb web)
 {
     this.cleanupUi = cleanupUi;
     this.cleanup   = cleanup;
     this.web       = web;
 }
Exemplo n.º 12
0
 public TimestampsPresenter(
     TimestampsUi ui,
     ShellUi shell,
     MethodWeb web)
     : base(ui, shell)
 {
     this.ui  = ui;
     this.web = web;
 }
Exemplo n.º 13
0
 public SetupMainCommand(
     MainUi ui,
     MethodWeb web,
     SettingsHolder settings)
 {
     this.ui       = ui;
     this.web      = web;
     this.settings = settings;
 }
Exemplo n.º 14
0
 public SetupLoginCommand(
     LoginUi ui,
     MethodWeb web,
     int loginDurationMinutes = 15)
     : this(
         ui,
         web,
         TimeSpan.FromMinutes(
             loginDurationMinutes))
 {
 }
Exemplo 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;
 }
Exemplo 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;
 }
Exemplo n.º 17
0
 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;
 }
Exemplo 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;
 }
Exemplo 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;
            }
Exemplo 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);
            }
        }
Exemplo 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;
 }
Exemplo n.º 22
0
 public FileIOBitter(
     MethodWeb web)
 {
     this.web = web;
 }
Exemplo n.º 23
0
 public TcpIpIOBitter(
     MethodWeb web)
 {
     this.web = web;
 }
Exemplo n.º 24
0
 public IOBitterFactory(
     MethodWeb web)
 {
     this.web = web;
 }
Exemplo n.º 25
0
 private void setWeb(MethodWeb web)
 {
     this.web = web;
 }
Exemplo n.º 26
0
 public HttpClientFactory(MethodWeb web)
 {
     this.web = web;
 }
Exemplo n.º 27
0
 public SetupShutdownCommand(
     Do cleanup,
     MethodWeb web)
     : this(null, cleanup, web)
 {
 }
Exemplo n.º 28
0
 public FileDataWatcher(
     MethodWeb web)
     : base(web)
 {
     this.web = web;
 }
Exemplo n.º 29
0
 public SetupShutdownCommand(
     MethodWeb web)
     : this(null, null, web)
 {
 }