山东雷驰
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.

33 lines
1.1 KiB

3 months ago
using Kean.Application.Command.Interfaces;
using Kean.Application.Command.ViewModels;
using Kean.Domain.Wcs.Commands;
using System;
using System.Threading.Tasks;
namespace Kean.Application.Command.Implements
{
/// <summary>
/// 控制交互聚合颗粒
/// </summary>
partial class AggregateGrain
{
/*
* Kean.Application.Command.Interfaces.IAggregateGrain.AcceptInput
*/
public Task<(AcceptInputCommand Fallback, Failure Failure)> AcceptInput(AcceptInputCommand command) =>
GrainFactory.GetGrain<IWcsGrain>(Guid.NewGuid()).AcceptInput(command);
/*
* Kean.Application.Command.Interfaces.IAggregateGrain.SyncOutput
*/
public Task<Failure> SyncOutput(SyncOutputCommand command) =>
GrainFactory.GetGrain<IWcsGrain>(Guid.NewGuid()).SyncOutput(command);
/*
* Kean.Application.Command.Interfaces.IAggregateGrain.SyncStation
*/
public Task<Failure> SyncStation(SyncStationCommand command) =>
GrainFactory.GetGrain<IWcsGrain>(Guid.NewGuid()).SyncStation(command);
}
}