using Best.HTTP.Shared.Logger; namespace Best.HTTP.Hosts.Connections { public enum SignalHandlerTypes { Signal, InlineIfPossible } /// /// Interface for signaling upload threads. /// public interface IThreadSignaler { /// /// A instance for debugging purposes. /// /// /// To help implementors log in the IThreadSignaler's context, /// the interface implementors must make their logging context accessible. /// public LoggingContext Context { get; } /// /// Signals the associated thread to resume or wake up. /// void SignalThread(SignalHandlerTypes signalType = SignalHandlerTypes.Signal); } }