Operations pipeline start

This commit is contained in:
Mikhail Shabanov committed 2020-07-19 13:04:31 +02:00
1 parent 6c10c6c654
commit 7ffbeb6b17
19 files changed
+432 -5

No files matched your search

@@ -0,0 +1,23 @@
using WotBlitzStatisticsPro.Common.Model;
namespace WotBlitzStatisticsPro.Logic.AccountInformationPipeline
{
public class AccountInformationPipelineContext
{
public AccountInformationPipelineContext(
long accountId,
RealmType realmType,
RequestLanguage requestLanguage)
{
AccountId = accountId;
RealmType = realmType;
RequestLanguage = requestLanguage;
}
public long AccountId { get; }
public RealmType RealmType { get; }
public RequestLanguage RequestLanguage { get; }
}
}
@@ -0,0 +1,14 @@
using System;
using System.Threading.Tasks;
using WotBlitzStatisticsPro.Logic.Pipeline;
namespace WotBlitzStatisticsPro.Logic.AccountInformationPipeline.Operations
{
public class GetAccountInfoOperation: IOperation<AccountInformationPipelineContext>
{
public Task Invoke(AccountInformationPipelineContext context, Func<AccountInformationPipelineContext, Task> next)
{
return next.Invoke(context);
}
}
}
@@ -0,0 +1,15 @@
using System;
using System.Threading.Tasks;
using WotBlitzStatisticsPro.Logic.Pipeline;
namespace WotBlitzStatisticsPro.Logic.AccountInformationPipeline.Operations
{
public class GetTanksInfoOperation: IOperation<AccountInformationPipelineContext>
{
public Task Invoke(AccountInformationPipelineContext context, Func<AccountInformationPipelineContext, Task> next)
{
return next.Invoke(context);
}
}
}