Multiprocotol Terminalprogram (BAT)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
MultiTerm/Common/IContext.cs

24 lines
756 B

namespace Common;
/// <summary>
/// Provides Context of some thread. Allows user of the interface to run actions on the thread of the implementer.
/// </summary>
public interface IContext
{
/// <summary>
/// Indicates wether the thread this property gotten from is equal to the implementers thread.
/// </summary>
bool IsSynchronized { get; }
/// <summary>
/// Run <paramref name="action"/> on the implementers thread.
/// </summary>
/// <param name="action">action to run</param>
void Invoke(Action action);
/// <summary>
/// Start running <paramref name="action"/> on the implementers thread.
/// </summary>
/// <param name="action">action to start</param>
void BeginInvoke(Action action);
}