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

            return(new SynchronizeStampEntity(code, type));
        }