public RollbarData(RollbarData data, Context context, string fingerprint) : this( data.Environment, data.Body, data.Level, data.Timestamp, data.CodeVersion, data.Platform, data.Language, data.Framework, fingerprint, data.Title, data.Server) { if (data == null) { throw new ArgumentNullException("data"); } if (context == null) { throw new ArgumentNullException("context"); } _applicationContext = context.ApplicationContext; _request = context.Request; _person = context.Person; _custom = context.Custom; }
//--- Constructors --- public Payload(string accessToken, RollbarData data) { if (string.IsNullOrWhiteSpace(accessToken)) { throw new ArgumentException("Cannot be null or whitespace.", "accessToken"); } if (data == null) { throw new ArgumentNullException("data"); } _accessToken = accessToken; _data = data; }