You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Common/Connected.Common.Numbering/NumberingService.cs

32 lines
822 B

2 years ago
using Connected.ServiceModel;
using Connected.Services;
2 years ago
using Ops = Connected.Common.Numbering.NumberingOps;
2 years ago
2 years ago
namespace Connected.Common.Numbering;
2 years ago
internal sealed class NumberingService : Service, INumberingService
{
public NumberingService(IContext context) : base(context)
{
}
public async Task<string> Calculate(NumberingCalculateArgs args)
{
return await Invoke(GetOperation<Ops.Calculate>(), args);
}
public async Task<INumbering?> Select(NumberingSelectArgs args)
{
return await Invoke(GetOperation<Ops.SelectByEntity>(), args);
}
public async Task<INumbering?> Select(PrimaryKeyArgs<int> args)
{
return await Invoke(GetOperation<Ops.Select>(), args);
}
internal async Task<string> NextValue(NumberingCalculateArgs args)
{
return await Invoke(GetOperation<Ops.NextValue>(), args);
}
}