private void HandleVisualStudioZipMessage(ZipMessage message) { var path = message.SourceFolderPath; Logger.Info("Received: {0} for {1}", typeof(ZipMessage).Name, path); if (TryCreateVisualStudioZip(path)) { string zipFilePath = GetVisualStudioZipFilePath(path); Context.ActorSelection(ActorPaths.BackupActor.Path).Tell(new BackupMessage(path, zipFilePath, ZipKind.VisualStudio)); } else { string noChangesDetected = string.Format("No changes detected in {0}...", path); Context.ActorSelection(ActorPaths.BackupStatisticsActor.Path).Tell(noChangesDetected); Context.ActorSelection(ActorPaths.CloudBackupActor.Path).Tell(new IncrementFolderCountMessage(message.ZipKind)); } }
private void HandleZipMessage(ZipMessage message) { Console.WriteLine(string.Format("Received: {0} for {1}", typeof(ZipMessage).Name, message.SourceFolderPath)); // TODO: Zip operations Context.Parent.Tell(new IncrementFolderCountMessage()); }