Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Failing event deserialization test - for real Apache Kafka data (#52)
- Loading branch information
Showing
5 changed files
with
199 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Gmc.Cloud.Diagnostic.Db; | ||
using Gmc.Cloud.Infrastructure.Core; | ||
|
||
namespace Gmc.Cloud.Infrastructure.Core | ||
{ | ||
public interface IEvent | ||
{ | ||
ulong Id { get; set; } | ||
ulong ParentEventId { get; set; } | ||
ulong UserId { get; set; } | ||
DateTime Time { get; set; } | ||
Guid UniqueGuid { get; set; } | ||
ulong ImpersonatorUserId { get; set; } | ||
ulong ImpersonatorCompanyId { get; set; } | ||
} | ||
|
||
|
||
public class Event : IEvent | ||
{ | ||
public ulong Id { get; set; } | ||
public ulong ParentEventId { get; set; } | ||
public ulong UserId { get; set; } | ||
public DateTime Time { get; set; } | ||
public Guid UniqueGuid { get; set; } | ||
public ulong ImpersonatorUserId { get; set; } | ||
public ulong ImpersonatorCompanyId { get; set; } | ||
} | ||
} | ||
|
||
namespace Gmc.Cloud.Diagnostic.Events | ||
{ | ||
public class DiscInfoAdded : Event | ||
{ | ||
public IList<DbDriveInfo> Infos { get; set; } | ||
public string InstanceId { get; set; } | ||
} | ||
} | ||
|
||
namespace Gmc.Cloud.Diagnostic.Db | ||
{ | ||
public class DbDriveInfo | ||
{ | ||
public string Name { get; set; } | ||
public long TotalSize { get; set; } | ||
public long AvailableFreeSpace { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
61 4 63 4 67 58 92 252 93 3 191 240 0 252 15 74 181 144 0 63 4 68 58 92 252 232 224 191 240 0 252 106 202 205 112 0 63 4 70 58 92 252 116 112 152 2 0 252 22 158 103 182 0 8 51 110 111 100 101 45 50 0 0 0 72 212 188 160 60 112 69 131 208 245 46 41 0 24 174 79 144 38 246 105 242 219 54 121 0 0 | ||
61 62 132 72 212 188 160 92 236 11 130 132 1 128 233 132 1 72 212 188 160 92 236 11 130 0 8 100 101 102 97 117 108 116 0 0 0 0 72 212 188 160 93 12 139 179 82 126 140 85 20 165 237 67 163 201 122 77 14 194 160 185 0 0 |
Oops, something went wrong.