/// <summary> /// Instantiates a new SeedSimulationFromWTT object from the supplied object. /// </summary> /// <param name="AppUserAPIKey">The application user API key who queued the process</param> /// <param name="AppAPIKey">The API Key of the application which queued the process</param> /// <param name="Environment">The environment where the task is being executed. This should be proided by the running application</param> /// <param name="JSON">The JSON containing the configuration for the task (see documentation)</param> /// <param name="Authenticated">A flag to indicate whether the user was authenticated at the point of queuing the process</param> internal SeedSimulationFromWTT(string AppUserAPIKey, string AppAPIKey, string Environment, string JSON, bool Authenticated) { //Set private variables this._JSON = JSON; this._Authenticated = Authenticated; this._SQLConnector = Globals.GetGFSqlConnector(AppAPIKey, AppUserAPIKey, Environment); this._Config = Globals.GetConfig(Environment); //Initialise the response this._Responses = new ExtendedList <QueuerResponse> { new QueuerResponse(QueuerResponseStatus.Queued, "Process Queued", null) }; }
/// <summary> /// Replaces the responses with an updated list of responses. /// </summary> /// <param name="Responses">The list of QueuerResponse object to replace the existing responses</param> public void ReplaceResponses(ExtendedList <QueuerResponse> Responses) { this._Responses = Responses; }
/// <summary> /// Event handler to update the Gro /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void RequestResponsesChangeEvent(object sender, ExtendedList <QueuerResponse> .ListEventArgs e) { this.SaveToDB(); }