[Import]
public IStatusKeeper StatusKeeper { get; set; }
+
+ public IStatusNotification StatusNotification { get; set; }
//A separate agent is used to execute delete actions immediatelly;
private readonly ActionBlock<CloudDeleteAction> _deleteAgent;
var accountInfo = action.AccountInfo;
- using (log4net.ThreadContext.Stacks["NETWORK"].Push("PROCESS"))
+ using (log4net.ThreadContext.Stacks["Operation"].Push("ProcessDelete"))
{
Log.InfoFormat("[ACTION] Start Processing {0}", action);
var fileAgent = GetFileAgent(accountInfo);
- using (ThreadContext.Stacks["DeleteCloudFile"].Push("Delete"))
+ using (ThreadContext.Stacks["Operation"].Push("DeleteCloudFile"))
{
var fileName = cloudFile.RelativeUrlToFilePath(accountInfo.UserName);
var info = fileAgent.GetFileSystemInfo(fileName);
client.DeleteObject(account, container, cloudFile.Name);
StatusKeeper.ClearFileStatus(fullPath);
+ StatusNotification.Notify(new CloudNotification{Data=cloudFile});
}
}