Revision 4ec636f6 trunk/Pithos.Core/PithosMonitor.cs
b/trunk/Pithos.Core/PithosMonitor.cs | ||
---|---|---|
31 | 31 |
[Import] |
32 | 32 |
public IPithosSettings Settings{get;set;} |
33 | 33 |
|
34 |
private IStatusKeeper _statusKeeper; |
|
35 |
|
|
34 | 36 |
[Import] |
35 |
public IStatusKeeper StatusKeeper { get; set; } |
|
37 |
public IStatusKeeper StatusKeeper |
|
38 |
{ |
|
39 |
get { return _statusKeeper; } |
|
40 |
set |
|
41 |
{ |
|
42 |
_statusKeeper = value; |
|
43 |
FileAgent.StatusKeeper = value; |
|
44 |
} |
|
45 |
} |
|
46 |
|
|
47 |
|
|
48 |
private IPithosWorkflow _workflow; |
|
36 | 49 |
|
37 | 50 |
[Import] |
38 |
public IPithosWorkflow Workflow { get; set; } |
|
51 |
public IPithosWorkflow Workflow |
|
52 |
{ |
|
53 |
get { return _workflow; } |
|
54 |
set |
|
55 |
{ |
|
56 |
_workflow = value; |
|
57 |
FileAgent.Workflow = value; |
|
58 |
} |
|
59 |
} |
|
39 | 60 |
|
40 | 61 |
public ICloudClient CloudClient { get; set; } |
41 | 62 |
|
42 | 63 |
public IStatusNotification StatusNotification { get; set; } |
43 | 64 |
|
65 |
//[Import] |
|
66 |
public FileAgent FileAgent { get; private set; } |
|
67 |
|
|
68 |
private WorkflowAgent _workflowAgent; |
|
69 |
|
|
44 | 70 |
[Import] |
45 |
public FileAgent FileAgent { get; set; } |
|
46 |
|
|
47 |
[Import] |
|
48 |
public WorkflowAgent WorkflowAgent { get; set; } |
|
71 |
public WorkflowAgent WorkflowAgent |
|
72 |
{ |
|
73 |
get { return _workflowAgent; } |
|
74 |
set |
|
75 |
{ |
|
76 |
_workflowAgent = value; |
|
77 |
FileAgent.WorkflowAgent = value; |
|
78 |
} |
|
79 |
} |
|
49 | 80 |
|
50 | 81 |
[Import] |
51 | 82 |
public NetworkAgent NetworkAgent { get; set; } |
... | ... | |
64 | 95 |
} |
65 | 96 |
|
66 | 97 |
private AccountInfo _accountInfo; |
98 |
|
|
99 |
|
|
67 | 100 |
|
68 | 101 |
|
69 | 102 |
private static readonly ILog Log = LogManager.GetLogger(typeof(PithosMonitor)); |
... | ... | |
103 | 136 |
|
104 | 137 |
CancellationTokenSource _cancellationSource; |
105 | 138 |
|
139 |
public PithosMonitor() |
|
140 |
{ |
|
141 |
FileAgent = new FileAgent(); |
|
106 | 142 |
|
143 |
} |
|
107 | 144 |
private bool _started; |
108 | 145 |
|
109 | 146 |
public void Start() |
Also available in: Unified diff