2007-05-16 20:28:23 +00:00
|
|
|
#region CPL License
|
|
|
|
/*
|
|
|
|
Nuclex Framework
|
|
|
|
Copyright (C) 2002-2007 Nuclex Development Labs
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the IBM Common Public License as
|
|
|
|
published by the IBM Corporation; either version 1.0 of the
|
|
|
|
License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
IBM Common Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the IBM Common Public
|
|
|
|
License along with this library
|
|
|
|
*/
|
|
|
|
#endregion
|
2007-04-16 17:18:16 +00:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
2007-07-01 19:27:40 +00:00
|
|
|
namespace Nuclex.Support.Scheduling {
|
2007-04-16 17:18:16 +00:00
|
|
|
|
|
|
|
/// <summary>Interface for abortable processes</summary>
|
|
|
|
public interface IAbortable {
|
|
|
|
|
|
|
|
/// <summary>Aborts the running process. Can be called from any thread.</summary>
|
2007-07-01 19:27:40 +00:00
|
|
|
/// <remarks>
|
|
|
|
/// The receive should honor the abort request and stop whatever it is
|
|
|
|
/// doing as soon as possible. The method does not impose any requirement
|
|
|
|
/// on the timeliness of the reaction of the running process, but implementers
|
2007-07-09 21:41:21 +00:00
|
|
|
/// are advised to not ignore the abort request and urged to try and design
|
|
|
|
/// their code in such a way that it can be stopped in a reasonable time
|
2007-07-01 19:27:40 +00:00
|
|
|
/// (eg. within 1 second of the abort request).
|
|
|
|
/// </remarks>
|
2007-04-16 17:18:16 +00:00
|
|
|
void AsyncAbort();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2007-07-01 19:27:40 +00:00
|
|
|
} // namespace Nuclex.Support.Scheduling
|