/// <summary> /// Initializes a new instance of the <see cref="MessageWrapper"/> class. /// </summary> /// <param name="issuedDate">message issuedate</param> /// <param name="userContext">user that issued the message</param> /// <param name="scope">scope of the message (name of calling program)</param> /// <param name="clientid">client id, for returning messages</param> /// <param name="messageid">message id, defined by client</param> /// <param name="callerIp">IP of the caller</param> /// <param name="orgContext">Organisation context</param> /// <param name="tracing">tracing level</param> public MessageWrapper(DateTime issuedDate, Guid userContext, string scope, string clientid, string messageid, string callerIp, Guid orgContext, Tracing tracing = null) { this.Init(userContext, scope, clientid, messageid, callerIp, null, issuedDate, orgContext, tracing); }
/// <summary> /// Initializes a new instance of the <see cref="MessageWrapper"/> class. /// </summary> /// <param name="issuedDate">message issuedate</param> /// <param name="userContext">user that issued the message</param> /// <param name="scope">scope of the message (name of calling program)</param> /// <param name="clientid">client id, for returning messages</param> /// <param name="messageid">message id, defined by client</param> /// <param name="callerIp">IP of the caller</param> /// <param name="json">json</param> /// <param name="orgContext">Organisation context</param> /// <param name="tracing">tracing level</param> public MessageWrapper(DateTime issuedDate, Guid userContext, string scope, string clientid, string messageid, string callerIp, string json, Guid orgContext, Tracing tracing = null) { this.Init(userContext, scope, clientid, messageid, callerIp, System.Text.Encoding.UTF8.GetBytes(json), issuedDate, orgContext, tracing); }
private void Init(Guid userContext, string scope, string clientid, string messageid, string callerIp, byte[] data, DateTime issuedDate, Guid OrgContext, Tracing tracing) { this.Scope = scope; this.IssuedDate = issuedDate; this.UserContextToken = userContext; this.MessageData = data; this.Tracing = tracing; this.Clientid = clientid; this.Messageid = messageid; this.CallerIp = callerIp; this.OrgContext = OrgContext; }