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

using Connected.ServiceModel;
using Connected.Services;
using Ops = Connected.Common.Numbering.NumberingOps;
namespace Connected.Common.Numbering;
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);
}
}