Reorganized the directory structure a bit; Created a new transforming collection for exposing the types in a collection under a different interface; moved Operation and associated classes to a new namespace; Implemented the basics of the SetProgression's observation mechanics
git-svn-id: file:///srv/devel/repo-conversion/nusu@11 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
parent
f38a0bc1ea
commit
cefbc78868
15 changed files with 946 additions and 91 deletions
15
Source/Scheduling/IAbortable.cs
Normal file
15
Source/Scheduling/IAbortable.cs
Normal file
|
@ -0,0 +1,15 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Nuclex.Support.Tracking {
|
||||
|
||||
/// <summary>Interface for abortable processes</summary>
|
||||
public interface IAbortable {
|
||||
|
||||
/// <summary>Aborts the running process. Can be called from any thread.</summary>
|
||||
void AsyncAbort();
|
||||
|
||||
}
|
||||
|
||||
} // namespace Nuclex.Support.Tracking
|
15
Source/Scheduling/Operation.cs
Normal file
15
Source/Scheduling/Operation.cs
Normal file
|
@ -0,0 +1,15 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Nuclex.Support.Tracking {
|
||||
|
||||
/// <summary>Base class for observable operations running in the background</summary>
|
||||
public abstract class Operation : Progression {
|
||||
|
||||
/// <summary>Executes the operation</summary>
|
||||
public abstract void Execute();
|
||||
|
||||
}
|
||||
|
||||
} // namespace Nuclex.Support.Tracking
|
10
Source/Scheduling/ThreadedMethodOperation.cs
Normal file
10
Source/Scheduling/ThreadedMethodOperation.cs
Normal file
|
@ -0,0 +1,10 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Nuclex.Support.Tracking {
|
||||
/*
|
||||
public class ThreadedMethodOperation : Operation {
|
||||
}
|
||||
*/
|
||||
} // namespace Nuclex.Support.Tracking
|
Loading…
Add table
Add a link
Reference in a new issue