FileSqlServerSync/Server/Common/Message.cs

30 lines
463 B
C#
Raw Normal View History

2024-07-31 09:14:07 +00:00
namespace Common;
2024-09-05 01:59:57 +00:00
public enum SyncMsgType
2024-07-31 09:14:07 +00:00
{
2024-09-05 01:59:57 +00:00
Error = 0,
General = 1,
Process = 2,
2024-09-23 05:55:17 +00:00
// DirFilePack = 3
2024-09-05 01:59:57 +00:00
}
2024-09-05 01:59:57 +00:00
public enum SyncProcessStep
{
Connect = 1,
DeployProject = 2,
DiffFileAndPack = 3,
PackSqlServer = 4,
UploadAndUnpack = 5,
Publish = 6,
CloseError = 7
2024-09-05 01:59:57 +00:00
}
public class SyncMsg
2024-09-05 01:59:57 +00:00
{
public SyncMsgType Type { get; set; }
2024-09-05 01:59:57 +00:00
public SyncProcessStep Step { get; set; }
2024-09-05 01:59:57 +00:00
public required string Body { get; set; }
2024-07-31 09:14:07 +00:00
}