Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

ProgressEvent [Feature Request] #43

Open
domidodo opened this issue Dec 17, 2020 · 1 comment
Open

ProgressEvent [Feature Request] #43

domidodo opened this issue Dec 17, 2020 · 1 comment

Comments

@domidodo
Copy link

Is it posible to add a progressEvent who return the current state of the compress?

that something like that is possible:

var jsc = new JavaScriptCompressor();
jsc.CompressProgressChanged += new OnCompressProgressChanged((CompressProgressChangedEventArgs arg) =>
{
	Console.WriteLine(arg.FilesList.Count + " files will be compressed." + arg.Progress + " % are done. (Speed:" + arg.Speed + ")");
});
jsc.CompressCompleted += new OnCompressCompleted((CompressCompletedEventArgs arg) =>
{
	Console.WriteLine(arg.FilesList.Count + " files are compressed in "+ arg.ProgressTime + ". (MaxSpeed:" + arg.MaxSpeed + " | MinSpeed:" + arg.MinSpeed + ")");
});
jsc.Compress("");
@PureKrome
Copy link
Member

@dhitschm 👋🏻 Heya! I'm happy to add something like this, for sure.

I don't have the bandwidth but will review and accept any PR's

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants