public Message(string name, string doc, IList<Parameter> request, Schema response, UnionSchema error) { if (string.IsNullOrEmpty(name)) throw new ArgumentNullException("name", "name cannot be null."); this.Request = request; this.Response = response; this.Error = error; this.Name = name; this.Doc = doc; }