Пример #1
0
 public async Task <IState?> GetStateSnapshotAsync()
 {
     using var a = ClaptrapActivitySource.Instance
                   .StartActivity(ClaptrapActivitySource.ActivityNames.LoadState) !
                   .AddClaptrapTags(_claptrapDesign, _stateLoader.Identity);
     using var _ = ClaptrapMetrics.MeasureStateLoader(Identity);
     return(await _stateLoader.GetStateSnapshotAsync());
 }
Пример #2
0
 public async Task <IState?> GetStateSnapshotAsync()
 {
     using var _ = ClaptrapMetrics.MeasureStateLoader(Identity);
     return(await _stateLoader.GetStateSnapshotAsync());
 }