realtytrac
04-20-2006, 04:25 PM
I am using the BuildDone event so that i may inform my users that the build has been completed. My problem is that i see that sometimes the build will complete without invoking this event, and sometimes it will invoke the event. Is there a reason why it is haphazard? This is my code:
builder.BuildMessage += new BuilderEvents_BuildMessageEventHandler(builder_Bui ldMessage);
builder.BuildDone += new BuilderEvents_BuildDoneEventHandler(builder_BuildD one);
builder.Initialize(x);
builder.Start(StepTypeEnum.vbldStepMain,0,0);
private void builder_BuildMessage(string message)
{
this.message += message;
}
private void builder_BuildDone(BuildCompletionStatusEnum Status)
{
Server.Transfer("http://www.cnn.com");
}
builder.BuildMessage += new BuilderEvents_BuildMessageEventHandler(builder_Bui ldMessage);
builder.BuildDone += new BuilderEvents_BuildDoneEventHandler(builder_BuildD one);
builder.Initialize(x);
builder.Start(StepTypeEnum.vbldStepMain,0,0);
private void builder_BuildMessage(string message)
{
this.message += message;
}
private void builder_BuildDone(BuildCompletionStatusEnum Status)
{
Server.Transfer("http://www.cnn.com");
}