/// <summary> /// Creates a new instance of the base compile request. /// </summary> /// <param name="id">The id of the request.</param> /// <param name="type">The type of the request.</param> /// <param name="timeoutSeconds">The total number of time out seconds for the container.</param> /// <param name="memoryConstraint">The memory constraint in mb.</param> /// <param name="sourceCode">The source code being used.</param> /// <param name="compilerName">The name of the compiler being used.</param> public CompileRequestBase(Guid id, CompileRequestType type, uint timeoutSeconds, uint memoryConstraint, IReadOnlyList <string> sourceCode, string compilerName) { this.Id = id; this.Type = type; this.TimeoutSeconds = timeoutSeconds; this.MemoryConstraint = memoryConstraint; this.SourceCode = sourceCode; this.CompilerName = compilerName; }
/// <summary> /// Creates a new instance of the compiler base response. /// </summary> /// <param name="id">the id of the request (used to match up).</param> /// <param name="result">The result of the compile.</param> public CompileResponseBase(Guid id, CompileRequestType type, CompilerResult result = CompilerResult.Unknown) { this.Id = id; this.Type = type; this.Result = result; }