Exemple #1
0
        public static QueuedTaskRepository InstantiateForMemory(RequestContext c)
        {
            QueuedTaskRepository result = null;

            result = new QueuedTaskRepository(c, new MemoryStrategy <Data.EF.QueuedTask>(PrimaryKeyType.Long),
                                              new TextLogger());
            return(result);
        }
Exemple #2
0
        public static QueuedTaskRepository InstantiateForDatabase(RequestContext c)
        {
            QueuedTaskRepository result = null;

            result = new QueuedTaskRepository(c,
                                              new EntityFrameworkRepository <Data.EF.QueuedTask>(
                                                  new Data.EF.EntityFrameworkDevConnectionString(c.ConnectionStringForEntityFramework)),
                                              new SupressLogger()
                                              );
            return(result);
        }
 public ScheduleService(RequestContext c,
                        QueuedTaskRepository queuedTasks)
 {
     context          = c;
     this.QueuedTasks = queuedTasks;
 }
 public static ScheduleService InstantiateForDatabase(RequestContext c)
 {
     return(new ScheduleService(c,
                                QueuedTaskRepository.InstantiateForDatabase(c)
                                ));
 }