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