From 1f18af8d4600937e12a464553089e93a6be9792f Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 11 Feb 2018 15:48:24 +0100 Subject: [PATCH] Added Progress bar backend helper class --- Logic/Support/ProgressBarBackend.cs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Logic/Support/ProgressBarBackend.cs diff --git a/Logic/Support/ProgressBarBackend.cs b/Logic/Support/ProgressBarBackend.cs new file mode 100644 index 00000000..49a9af9b --- /dev/null +++ b/Logic/Support/ProgressBarBackend.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using NUnit.Framework.Constraints; +using Swarmops.Logic.Cache; + +namespace Swarmops.Logic.Support +{ + public class ProgressBarBackend + { + public ProgressBarBackend(string guid) + { + this.Guid = guid; + } + + public void Set (int progress) + { + GuidCache.Set(this.Guid + "-Progress", progress); + + } + + public string Guid { get; private set; } + } +}