Example #1
0
 public AdapterIActionSource(IActionSource actionSource)
 {
     if (actionSource == null)
     {
         throw new ArgumentNullException("actionSource");
     }
     this.actionSource = actionSource;
 }
Example #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();
        }
Example #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();
        }
Example #4
0
 public void Add(IActionSource source)
 {
     _actionSourceAggregator.Sources.Add(source);
 }
Example #5
0
 public static IActionSource2 ToIActionSource2(this IActionSource actionSource)
 {
     return(new AdapterIActionSource(actionSource));
 }
 public ActionSourceRunner(IActionSource source)
 {
     _source = source;
 }
Example #7
0
 public void Add(IActionSource source)
 {
     _actionSourceAggregator.Add(source);
 }
Example #8
0
 public void Add(IActionSource source)
 {
     _sources.Add(source);
 }
Example #9
0
 public void AddActions(IActionSource source)
 {
     _actionSources.FillAction(source);
 }
Example #10
0
 public void AddSource(IActionSource source)
 {
     _actionSources.Add(source);
 }
Example #11
0
 public void AddActions(IActionSource source)
 {
     _actionSources.FillAction(source);
 }
Example #12
0
 /// <summary>
 /// Find actions with the provided <see cref="IActionSource"/> instance.
 /// </summary>
 public ActionCallCandidateExpression FindWith(IActionSource actionSource)
 {
     _sources.Fill(actionSource);
     return(this);
 }
Example #13
0
 public void Add(IActionSource source)
 {
     Add(new ActionSourceRunner(source), ConfigurationType.Discovery);
 }
Example #14
0
 public void Add(IActionSource source)
 {
     _sources.Add(source);
 }
Example #15
0
 public ActionsMiddleware(RequestDelegate next, IActionSource actionSource)
 {
     _next         = next;
     _actionSource = actionSource;
 }
 public WeatherUpdaterService(IActionSource actionSource, IWeatherHub weatherHub)
 {
     _actionSource = actionSource;
     _weatherHub   = weatherHub;
 }
Example #17
0
 public static List <ActionDescriptor> GetActions(this IActionSource actionSource,
                                                  Configuration configuration, HttpConfiguration httpConfiguration)
 {
     return(actionSource.GetActions(new ActionSourceContext(configuration, httpConfiguration)));
 }
Example #18
0
 public MonitoringController(IActionSource actionSource)
 {
     _actionSource = actionSource;
 }
Example #19
0
 public void AddSource(IActionSource source)
 {
     _actionSources.Add(source);
 }
 public ActionCallCandidateExpression FindWith(IActionSource actionSource)
 {
     _actionSourceMatcher.AddSource(actionSource);
     return(this);
 }
Example #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);
 }
 public ActionSourceRunner(IActionSource source)
 {
     _source = source;
 }