Last change
on this file since 4368 was
4368,
checked in by cneumuel, 14 years ago
|
- created HiveClient which shows an overview over all submitted HiveExperiments
- its possible to download all submitted HiveExperiments including results
- Experiments are now sent as a whole to the Hive and the Hive-Slaves take care of creating child-jobs (if necessary). The parent job is then paused and will be reactivated when all child-jobs are finished
- WcfService-Clients are now consistently managed by WcfServicePool which allows to use IDisposable-Pattern and always keeps exactly one proxy-object until all callers disposed them.
- created ProgressView which is able to lock a View and display progress of an action. It also allows to simulate progress if no progress-information is available so that users don't get too nervous while waiting.
|
File size:
810 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using HeuristicLab.Common;
|
---|
3 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
4 | using HeuristicLab.Hive.JobBase;
|
---|
5 | using System.Collections.Generic;
|
---|
6 |
|
---|
7 | namespace HeuristicLab.Hive.Contracts {
|
---|
8 | [StorableClass]
|
---|
9 | [Serializable]
|
---|
10 | public class MessageContainerWithCallback<CallbackParameterType> : MessageContainer {
|
---|
11 |
|
---|
12 | [Storable]
|
---|
13 | public Action<CallbackParameterType> Callback;
|
---|
14 |
|
---|
15 | public MessageContainerWithCallback(MessageType message, Guid parentJobId, Action<CallbackParameterType> callback)
|
---|
16 | : base(message, parentJobId) {
|
---|
17 | this.Callback = callback;
|
---|
18 | }
|
---|
19 |
|
---|
20 | public override IDeepCloneable Clone(Cloner cloner) {
|
---|
21 | MessageContainerWithJob clone = (MessageContainerWithJob)base.Clone(cloner);
|
---|
22 |
|
---|
23 | return clone;
|
---|
24 | }
|
---|
25 | }
|
---|
26 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.