Click here to Skip to main content
15,902,447 members

Comments by sapanagarud (Top 4 by date)

sapanagarud 12-Aug-19 3:58am View    
thank you
sapanagarud 12-Aug-19 2:45am View    
Deleted
thanks for your reply.i debugged already , RunInBackground function holds the updated value but somehow its getting corrupted and I am not seeing correct value in LaunchRequest .Can you please suggest.Am I missing something here?e.g correct lock
sapanagarud 11-Aug-19 10:40am View    
Deleted
Hi thanks for your reply .
here is my code .I am updating outputlocation in onjobfinished but in LaunchRequest I am getting old location(not getting updated location)

Class controller
{
public List<jobsummary> JobSummaries { get; set; }

internal virtual void OnJobFinished(object sender, EventArgs<batchjobresult> args)
{

var JobSummary = JobSummaries.FirstOrDefault(x => x.Name == batchJobStatus.JobDefinition.Name);
if (JobSummary.RunMode == RunMode.Increment) JobSummary.Outputlocation = JobSummary.BaseFilePath;


RunInBackground(JobSummary);


}

private void RunInBackground(JobSummary objJobSummary)
{

var backGroundWorker = new BackgroundWorker();
backGroundWorker.DoWork += (sender, aventArgs) => Controller.LaunchRequest(aventArgs.Argument as JobSummary);
backGroundWorker.RunWorkerAsync(objJobSummary);
}
}




class CopController
{

public void LaunchRequest(JobSummary JobSummary1)
{

//here I am not getting updated outputlocation which I have changed in OnJobFinished
}


}
sapanagarud 9-Aug-19 6:31am View    
Deleted