blob: 507c9adbc33dd4bd8e6bd55decee17e1f92224bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
using Microsoft.Azure.Management.Fluent;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core;
namespace Tango.AzureUtils
{
public abstract class AzureUtilsComponentBase : ExtendedObject
{
protected IAzure Azure { get; private set; }
public event EventHandler<AzureUtilsProgressEventArgs> Progress;
public AzureUtilsComponentBase(IAzure azure)
{
Azure = azure;
}
protected virtual void OnProgress(AzureUtilsStage stage, String message = null, double progress = 0, double maximum = 100, bool indeterminate = true)
{
Progress?.Invoke(this, new AzureUtilsProgressEventArgs()
{
Stage = stage,
Message = message,
Progress = progress,
Maximum = maximum,
IsIndeterminate = indeterminate,
});
}
}
}
|