Csla BackgroundWorker missing ReportProgress(percent, userState) overload

Csla BackgroundWorker missing ReportProgress(percent, userState) overload

Old forum URL: forums.lhotka.net/forums/t/10776.aspx


Turntwo posted on Saturday, October 15, 2011

I'm using the Csla BackgroundWorker wrapper because I need the Context available, however I noticed it was missing an override of the ReportProgress method that includes a UserState object (in case you want to report more than just a percent complete).  

I added this to the BackgroundWorker class as it is completely straightforward, but was hoping it could be included in the default CSLA version, as I don't like to modify CSLA too much - makes upgrading to new versions more complicated.  

 	public void ReportProgress(int percentProgress, object userState)
	{
		_myWorker.ReportProgress(percentProgress, userState);
	}
Thanks.

JonnyBee replied on Sunday, October 16, 2011

Thanks,

Added to bugtracker: http://www.lhotka.net/cslabugs/edit_bug.aspx?id=980

Done and checked in to repository.

Copyright (c) Marimer LLC