Esempio n. 1
0
        public IReadOnlyList <EntityIdWithVersion <Uri, string> > GetVersions(DateTime from, DateTime to)
        {
            using (AutomaticStopwatch.StartInfo(s_logger, "CalDavRepository.GetVersions"))
            {
                switch (_entityType)
                {
                case EntityType.Event:
                    return(_calDavDataAccess.GetEvents(from, to));

                case EntityType.Todo:
                    return(_calDavDataAccess.GetTodos(from, to));

                default:
                    throw new NotImplementedException(string.Format("EntityType '{0}' not implemented.", _entityType));
                }
            }
        }