Nullable refernce types refactoring

This commit is contained in:
Mikhail Shabanov committed 2020-12-27 12:39:25 +01:00
1 parent e5c90e03d3
commit e12734981b
85 files changed
+509 -351

No files matched your search

@@ -30,11 +30,15 @@ namespace WotBlitzStatisticsPro.Logic
.AddOperation<BuildAccountInfoResponseOperation>()
;
await pipeline.Build()
.Invoke(context, null)
.ConfigureAwait(false);
var firstOperation = pipeline.Build();
if (firstOperation != null)
{
await firstOperation
.Invoke(context, null)
.ConfigureAwait(false);
}
return contextData.Response;
return contextData?.Response ?? new AccountInfoResponse();
}
public async Task<AccountInfoResponse> GatherAndSaveAccountInformation(RealmType realm, long accountId, RequestLanguage requestLanguage)
@@ -53,11 +57,15 @@ namespace WotBlitzStatisticsPro.Logic
.AddOperation<BuildAccountInfoResponseOperation>()
;
await pipeline.Build()
.Invoke(context, null)
.ConfigureAwait(false);
var firstOperation = pipeline.Build();
if (firstOperation != null)
{
await firstOperation
.Invoke(context, null)
.ConfigureAwait(false);
}
return contextData.Response;
return contextData?.Response ?? new AccountInfoResponse();
}
public async Task<AccountInfoHistoryResponse> GetAccountInfoHistory(RealmType realm, long accountId, DateTime startDate, RequestLanguage requestLanguage)
@@ -77,11 +85,15 @@ namespace WotBlitzStatisticsPro.Logic
.AddOperation<FillAccountInfoHistoryResponse>()
;
await pipeline.Build()
.Invoke(context, null)
.ConfigureAwait(false);
var firstOperation = pipeline.Build();
if (firstOperation != null)
{
await firstOperation
.Invoke(context, null)
.ConfigureAwait(false);
}
return contextData.Response;
return contextData?.Response ?? new AccountInfoHistoryResponse();
}
}
}