public void SetInstance(TaskQueue.ITQueue instance, QueueSpecificParameters parameters) { this.QueueTypeName = instance.QueueType; this.QueueInstance = instance; #if DEBUG System.Diagnostics.Debug.Assert(instance.GetParametersModel().GetType() == parameters.GetType()); #endif this.specParams = parameters; string chkresult; if (!parameters.Validate(out chkresult)) throw new Exception("Invalid parameters passed to queue: " + Name); }
public void SetInstance(TaskQueue.ITQueue instance, QueueSpecificParameters parameters) { this.QueueTypeName = instance.QueueType; this.QueueInstance = instance; #if DEBUG System.Diagnostics.Debug.Assert(instance.GetParametersModel().GetType() == parameters.GetType()); #endif this.specParams = parameters; string chkresult; if (!parameters.Validate(out chkresult)) { throw new Exception("Invalid parameters passed to queue: " + Name); } }