public static IEnumerable<Func<CancellationToken, Task>> Tasks(ICommandSender service, IDocumentStore docs,
     bool isTest)
 {
     var flow = new DomainSender(service);
     // more tasks go here
     yield break;
 }
 public static IEnumerable<object> Receptors(ICommandSender service)
 {
     var flow = new DomainSender(service);
     yield return new ReplicationReceptor(flow);
     yield return new RegistrationReceptor(flow);
     // more senders go here
 }