使用.Net创建CalDAV服务 [英] Creating a CalDAV service with .Net

查看:341
本文介绍了使用.Net创建CalDAV服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的应用程序中创建外部用户可以查看的日历。

I want to create a calendar in my application that external users can view.

CalDAV(基本上是WebDAV + iCalendar)格式似乎得到了相对广泛的支持,如果一些客户端(例如Outlook)异常。

The CalDAV (basically WebDAV+iCalendar) format seems to be relatively widely supported, although if rather unusually by some clients (Outlook, for instance). Completely new to me though.

我想外部发布活动,我不需要用户能够更新它们。

I want to externally publish events, I don't need users to be able to update them.

.ics文件中的事件的文本格式显得相对简单:

The text format of events in .ics files appears relatively simple:

BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN

BEGIN:VEVENT
DTSTART:20091130T000000Z
DTEND:20091201T000000Z
SUMMARY:Test event for calendar format
LOCATION:Company site
DESCRIPTION:Test event.\nMore text on a new line
END:VEVENT

END:VCALENDAR

但我真的不想写我自己的ics文件生成器。

However I don't really want to write my own ics file builder. The key names starting on each line don't seem to be very consistent between ics files too.

在每一行开始的键名称在ics文件之间似乎不一致。理想情况下,我不想设置一个完整的WebDAV实现 - 只是检索只读日历的能力。

Is there a .Net implementation out there? Ideally I don't want to set up a whole WebDAV implementation - just the ability to retrieve a read-only calendar.

我主要想让它在一个url用户可以从iPhone,Android和黑莓手机同步。我知道他们可以处理一些供应商的CalDAV服务,但不能处理其他人(例如我的iPhone可以从谷歌日历同步,但失败了FaceBook的事件) - 任何人都有什么想法为什么?

I mainly want this to be at a url that users can sync from iPhone, Android and Blackberry phones. I know that they can handle CalDAV services from some suppliers but not others (for instance my iPhone can sync from Google calendar but fails with FaceBook's events) - anyone have any idea why?

我认为事件也可以包含MIME附件 - 这是否足够支持值得一探究竟?

I think events can also contain MIME attachments - is this sufficiently supported to be worth looking into too?

更新

进一步的研究发现,大多数实现中存在一些奇怪的不一致。没有主要的移动客户端操作系统(iPhone,黑莓,Android)可以处理.ics文件。

Further research on this has identified some weird inconsistencies in most implementations. None of the major mobile client OSs (iPhone, Blackberry, Android) can handle .ics files.

但是iPhone可以从一个URL打开.ics一个日历),这也适用于FaceBook。黑莓和Android不能。我认为黑莓可以处理完整的CalDAV选项(而不是只有.ics文件),但不知道很多关于编程。

However iPhones can open an .ics from a URL (choose to subscribe to a calendar) and this does work with FaceBook too. Blackberry and Android can't however. I think the Blackberry can handle the full CalDAV option (rather than just the .ics file) but don't know much about programming for it.

是否有一致的方法这样做吗?

Is there a consistent way to do this out there?

推荐答案

我使用了 http://sourceforge.net/projects/dday-ical/ 去年的一个项目。
非常好!

I've used http://sourceforge.net/projects/dday-ical/ for a project last year. Works perfectly!

这篇关于使用.Net创建CalDAV服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆