public ImportExecuteContext( CancellationToken cancellation, ProgressValueSetter progressValueSetter, string progressInfo) { _progressValueSetter = progressValueSetter; _progressInfo = progressInfo; CancellationToken = cancellation; CustomProperties = new Dictionary <string, object>(); }
public void SetProgress(string message) { if (ProgressValueSetter != null && message.HasValue()) { try { ProgressValueSetter.Invoke(0, 0, message); } catch { } } }