Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Threading;
- namespace Simulator
- {
- class OfficeClerk
- {
- Random rnd;
- protected int _timeReception;
- public int TimeReception
- {
- get
- {
- return _timeReception;
- }
- }
- public OfficeClerk()
- {
- rnd = new Random();
- }
- public async Task ServiceClerkAsync ()
- {
- _timeReception = rnd.Next(30, 40);
- await Task.Run(() => Thread.Sleep(_timeReception));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement