Sha256: eeb84aca6f9c3dea73c02fdb20853a57b38a98265d573a3ca1ddd14c519f7ac0

Contents?: true

Size: 553 Bytes

Versions: 2

Compression:

Stored size: 553 Bytes

Contents

using System;
using System.Collections.Generic;

namespace ClrModels {
	public class ExposedChangedSubscriber{

		private readonly IExposingBridge _warrior;

		public ExposedChangedSubscriber(IExposingBridge warrior){
		  _warrior = warrior;
		  _warrior.OnIsExposedChanged += OnExposedChanged;
		}

		public int Counter { get; set; }
		public object Sender {get; set;  }
		public EventArgs Args { get; set; }

		private void OnExposedChanged(object sender, EventArgs args){
		  Counter++;            
		  Sender = sender;
		  Args = args;
		}

  }
  
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
caricature-0.7.7 spec/fixtures/ExposedChangedSubscriber.cs
caricature-0.7.6 spec/fixtures/ExposedChangedSubscriber.cs