public Department(int id, strign name)
 {
     towns     = new List <Town>();
     this.name = name;
     this.id   = id;
     size      = 0;
 }
Exemple #2
0
    public async Task Execute(strign filter, CancellationToken cancellationToken)
    {
        try
        {
            DataTable result = await Task.Run(() => Download(filter));

            if (cancellationToken.IsCancellationRequested)
            {
                return;
            }
            Source.Merge(result);
        }
        catch (Exception) { }
    }