예제 #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);
        }
예제 #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);
        }
예제 #3
0
 public ScheduleService(RequestContext c,
                        QueuedTaskRepository queuedTasks)
 {
     context          = c;
     this.QueuedTasks = queuedTasks;
 }
예제 #4
0
 public static ScheduleService InstantiateForDatabase(RequestContext c)
 {
     return(new ScheduleService(c,
                                QueuedTaskRepository.InstantiateForDatabase(c)
                                ));
 }