Esempio n. 1
0
 public AdapterIActionSource(IActionSource actionSource)
 {
     if (actionSource == null)
     {
         throw new ArgumentNullException("actionSource");
     }
     this.actionSource = actionSource;
 }
Esempio n. 2
0
        public DrawingModel(Control control, IActionSource<IDrawAction> drawActionSource)
        {
            _control = control;
            _drawActionSource = drawActionSource;

            // This line says, "I want to listen to my _drawActionSource for changes to
            // its Actions.  Every time its Actions changes, I want it to call my
            // DrawActionsChanged method, so I can appropriately update the _control that
            // I'm drawing onto."
            _drawActionSource.ActionsChanged += DrawActionsChanged;

            control.Paint += Paint;
            control.SizeChanged += HandleControlSizeChanged;
            StopFlickerBySuspendingBackgroundRedrawing();
            UpdateBackBuffer();
        }
Esempio n. 3
0
        public DrawingModel(Control control, IActionSource <IDrawAction> drawActionSource)
        {
            _control          = control;
            _drawActionSource = drawActionSource;

            // This line says, "I want to listen to my _drawActionSource for changes to
            // its Actions.  Every time its Actions changes, I want it to call my
            // DrawActionsChanged method, so I can appropriately update the _control that
            // I'm drawing onto."
            _drawActionSource.ActionsChanged += DrawActionsChanged;

            control.Paint       += Paint;
            control.SizeChanged += HandleControlSizeChanged;
            StopFlickerBySuspendingBackgroundRedrawing();
            UpdateBackBuffer();
        }
Esempio n. 4
0
 public void Add(IActionSource source)
 {
     _actionSourceAggregator.Sources.Add(source);
 }
Esempio n. 5
0
 public static IActionSource2 ToIActionSource2(this IActionSource actionSource)
 {
     return(new AdapterIActionSource(actionSource));
 }
 public ActionSourceRunner(IActionSource source)
 {
     _source = source;
 }
Esempio n. 7
0
 public void Add(IActionSource source)
 {
     _actionSourceAggregator.Add(source);
 }
Esempio n. 8
0
 public void Add(IActionSource source)
 {
     _sources.Add(source);
 }
Esempio n. 9
0
 public void AddActions(IActionSource source)
 {
     _actionSources.FillAction(source);
 }
Esempio n. 10
0
 public void AddSource(IActionSource source)
 {
     _actionSources.Add(source);
 }
Esempio n. 11
0
 public void AddActions(IActionSource source)
 {
     _actionSources.FillAction(source);
 }
Esempio n. 12
0
 /// <summary>
 /// Find actions with the provided <see cref="IActionSource"/> instance.
 /// </summary>
 public ActionCallCandidateExpression FindWith(IActionSource actionSource)
 {
     _sources.Fill(actionSource);
     return(this);
 }
Esempio n. 13
0
 public void Add(IActionSource source)
 {
     Add(new ActionSourceRunner(source), ConfigurationType.Discovery);
 }
Esempio n. 14
0
 public void Add(IActionSource source)
 {
     _sources.Add(source);
 }
Esempio n. 15
0
 public ActionsMiddleware(RequestDelegate next, IActionSource actionSource)
 {
     _next         = next;
     _actionSource = actionSource;
 }
 public WeatherUpdaterService(IActionSource actionSource, IWeatherHub weatherHub)
 {
     _actionSource = actionSource;
     _weatherHub   = weatherHub;
 }
Esempio n. 17
0
 public static List <ActionDescriptor> GetActions(this IActionSource actionSource,
                                                  Configuration configuration, HttpConfiguration httpConfiguration)
 {
     return(actionSource.GetActions(new ActionSourceContext(configuration, httpConfiguration)));
 }
Esempio n. 18
0
 public MonitoringController(IActionSource actionSource)
 {
     _actionSource = actionSource;
 }
Esempio n. 19
0
 public void AddSource(IActionSource source)
 {
     _actionSources.Add(source);
 }
 public ActionCallCandidateExpression FindWith(IActionSource actionSource)
 {
     _actionSourceMatcher.AddSource(actionSource);
     return(this);
 }
Esempio n. 21
0
 public void Initialize()
 {
     _server       = new TestServer(new WebHostBuilder().UseStartup <FakeStartup <Startup> >());
     _actionSource = _server.Host.Services.GetService <IActionSource>();
 }
 /// <summary>
 /// Find actions with the provided <see cref="IActionSource"/> instance.
 /// </summary>
 public ActionCallCandidateExpression FindWith(IActionSource actionSource)
 {
     _configuration.Add(actionSource);
     return(this);
 }
Esempio n. 23
0
 public ActionSourceRunner(IActionSource source)
 {
     _source = source;
 }