public async Task <SynchronizeStampEntity> GetAsync(string code, SynchronizeDirectionType type, CancellationToken cancellationToken = default) { return(await GetQueryBase().SingleOrDefaultAsync(x => x.Code == code && x.Type == type)); }
internal SynchronizeStampEntity(string code, SynchronizeDirectionType type) { Code = code; Type = type; }
public SynchronizeStampEntity Get(string code, SynchronizeDirectionType type) { return(GetAsync(code, type).Result); }
public static SynchronizeStampEntity Create(string code, SynchronizeDirectionType type) { Guard.NotEmpty(code, nameof(code)); return(new SynchronizeStampEntity(code, type)); }