Пример #1
0
 static void Main(string[] args)
 {
     IRndGenerator <int> rndActor =
         ActorWrapper.WrapActor(RndGeneratorFactory.NewSimpleRndGenerator());
     Task <int> nextTask = rndActor.GetNextNumber();
     // int number = await nextTask;
 }
Пример #2
0
 public RndCardSelector(IRndGenerator rndGenerator)
 {
     RndGenerator = rndGenerator;
 }
Пример #3
0
 public void Init()
 {
     this.GenRnd = new RndGenerator();
 }
 public CardPackShuffler(IRndGenerator rndGenerator)
 {
     RndGenerator = rndGenerator ?? throw new ArgumentNullException();
 }