NUnit.Util.AssemblyWatcher.PublishEvent()

Here are the examples of the csharp api NUnit.Util.AssemblyWatcher.PublishEvent() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

19 Source : AssemblyWatcher.cs
with MIT License
from roozbehid

protected void OnTimer(Object source, ElapsedEventArgs e)
		{
			lock(this)
			{
				PublishEvent();
				timer.Enabled=false;
			}
		}

19 Source : AssemblyWatcher.cs
with MIT License
from roozbehid

protected void OnChanged(object source, FileSystemEventArgs e)
		{
			changedreplacedemblyPath = e.FullPath;
			if ( timer != null )
			{
				lock(this)
				{
					if(!timer.Enabled)
						timer.Enabled=true;
					timer.Start();
				}
			}
			else
			{
				PublishEvent();
			}
		}