using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IpcLibrary.Core {
    /// <summary>
    /// IPC消息基类
    /// </summary>
    [Serializable]
    public class IPCMessage {
        public string Id { get; set; } = Guid.NewGuid().ToString();
        public MessageType Type { get; set; }
        public string Method { get; set; }
        public object[] Parameters { get; set; }
        public object Result { get; set; }
        public string Error { get; set; }
        public DateTime Timestamp { get; set; } = DateTime.UtcNow;
        public string SourceProcessId { get; set; }
        public string TargetProcessId { get; set; }
    }
}
