private void ApplySnapshot(Snapshot snapshot)
 {
     if (snapshot.State is Collection <SampleDto> ss)
     {
         QueueDto = ss;
         Logger.LogInformation("Restore Snapshot : {0}", string.Join(",", QueueDto.Select(x => x.Number)));
     }
 }
 private void ApplyEvent(Event @event)
 {
     switch (@event.Data)
     {
     case SampleDto msg:
         QueueDto.Add(msg);
         Logger.LogInformation("Restore Queue : {0}", string.Join(",", QueueDto.Select(x => x.Number)));
         break;
     }
 }