Added Progress bar backend helper class

This commit is contained in:
Rick Falkvinge
2018-02-11 15:48:24 +01:00
parent 6ece5a3578
commit 1f18af8d46
+26
View File
@@ -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; }
}
}