aktueller Stand
This commit is contained in:
@@ -23,14 +23,19 @@ namespace C4IT.FASD.Cockpit.Communication
|
||||
{
|
||||
private int ticketCounter = 475;
|
||||
|
||||
private readonly List<cF4SDHealthCardJsonRawData> MockupData = new List<cF4SDHealthCardJsonRawData>();
|
||||
|
||||
private readonly Dictionary<string, cF4SDHealthCardRawData.cHealthCardTable> MockupPickup = new Dictionary<string, cF4SDHealthCardRawData.cHealthCardTable>();
|
||||
private readonly Dictionary<string, Dictionary<string, List<TicketOverviewRelationDefinition>>> TicketOverviewRelations =
|
||||
new Dictionary<string, Dictionary<string, List<TicketOverviewRelationDefinition>>>(StringComparer.OrdinalIgnoreCase);
|
||||
private readonly HashSet<Guid> _generatedTicketIds = new HashSet<Guid>();
|
||||
private readonly object _demoTicketSync = new object();
|
||||
private const string DemoTicketHasDetailsInfoKey = "Demo.HasTicketDetails";
|
||||
private readonly List<cF4SDHealthCardJsonRawData> MockupData = new List<cF4SDHealthCardJsonRawData>();
|
||||
|
||||
private readonly Dictionary<string, cF4SDHealthCardRawData.cHealthCardTable> MockupPickup = new Dictionary<string, cF4SDHealthCardRawData.cHealthCardTable>();
|
||||
|
||||
#region Ticketübersicht
|
||||
|
||||
private readonly Dictionary<string, Dictionary<string, List<TicketOverviewRelationDefinition>>> TicketOverviewRelations =
|
||||
new Dictionary<string, Dictionary<string, List<TicketOverviewRelationDefinition>>>(StringComparer.OrdinalIgnoreCase);
|
||||
private readonly HashSet<Guid> _generatedTicketIds = new HashSet<Guid>();
|
||||
private readonly object _demoTicketSync = new object();
|
||||
private const string DemoTicketHasDetailsInfoKey = "Demo.HasTicketDetails";
|
||||
|
||||
#endregion
|
||||
public cFasdCockpitCommunicationDemo()
|
||||
{
|
||||
if (LoadMockupData(out var loadedData))
|
||||
@@ -91,12 +96,15 @@ namespace C4IT.FASD.Cockpit.Communication
|
||||
LogMethodEnd(CM);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
private void LoadTicketOverviewRelations()
|
||||
{
|
||||
var CM = MethodBase.GetCurrentMethod();
|
||||
LogMethodBegin(CM);
|
||||
return null;
|
||||
}
|
||||
|
||||
#region Ticketübersicht
|
||||
|
||||
private void LoadTicketOverviewRelations()
|
||||
{
|
||||
var CM = MethodBase.GetCurrentMethod();
|
||||
LogMethodBegin(CM);
|
||||
try
|
||||
{
|
||||
TicketOverviewRelations.Clear();
|
||||
@@ -391,13 +399,16 @@ namespace C4IT.FASD.Cockpit.Communication
|
||||
int baseMs = 420;
|
||||
int perItem = 100;
|
||||
int capped = Math.Max(0, Math.Min(count, 5));
|
||||
int delay = Math.Max(240, Math.Min(baseMs + capped * perItem, 2000));
|
||||
return Task.Delay(delay);
|
||||
}
|
||||
private bool LoadMockupData(out List<cF4SDHealthCardJsonRawData> sampleData)
|
||||
{
|
||||
var CM = MethodBase.GetCurrentMethod();
|
||||
LogMethodBegin(CM);
|
||||
int delay = Math.Max(240, Math.Min(baseMs + capped * perItem, 2000));
|
||||
return Task.Delay(delay);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private bool LoadMockupData(out List<cF4SDHealthCardJsonRawData> sampleData)
|
||||
{
|
||||
var CM = MethodBase.GetCurrentMethod();
|
||||
LogMethodBegin(CM);
|
||||
|
||||
sampleData = new List<cF4SDHealthCardJsonRawData>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user