Example #1
0
 private static string GetAccountSummaryCacheKey(IHasRequestId o)
 {
     return(o switch
     {
         AccountSummary a => $"{a.Account}+{a.Currency}+{a.Tag}",
         AccountSummaryEnd => "AccountSummaryEnd",
         Alert _ => "",
         _ => throw new ArgumentException($"Unhandled type: {o.GetType()}.")
     });