CalDav.Server.Services
6.0.5
See the version list below for details.
dotnet add package CalDav.Server.Services --version 6.0.5
NuGet\Install-Package CalDav.Server.Services -Version 6.0.5
<PackageReference Include="CalDav.Server.Services" Version="6.0.5" />
paket add CalDav.Server.Services --version 6.0.5
#r "nuget: CalDav.Server.Services, 6.0.5"
// Install CalDav.Server.Services as a Cake Addin #addin nuget:?package=CalDav.Server.Services&version=6.0.5 // Install CalDav.Server.Services as a Cake Tool #tool nuget:?package=CalDav.Server.Services&version=6.0.5
Calendaring Extensions to WebDAV, or CalDAV
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- CalDav.Server.Contracts (>= 2.1.4)
- Microsoft.AspNetCore.Mvc.Core (>= 2.2.5)
- Microsoft.Extensions.Logging (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Implement interfaces: ICalDavRepository and ICalDavSettings
And can use lib like that
[ApiController]
[Route("api/v1/[controller]")]
[Route("")]
public class CalDavController : BaseController
{
private readonly ICalDavLocalService _calDavLocalService;
private readonly ICalDavSettings _calDavSettings;
public CalDavController(ICalDavLocalService calDavLocalService, ICalDavSettings calDavSettings)
{
_calDavLocalService = calDavLocalService;
_calDavSettings = calDavSettings;
}
[ApiExplorerSettings(IgnoreApi = true)]
[HttpHead]
[Route("{*path}")]
[Route("")]
public ActionResult Head()
{
var index = _calDavLocalService.GetActionResult(CurrentUser);
return index;
}
[HttpOptions]
[Route("{*path}")]
[Route("")]
[ApiExplorerSettings(IgnoreApi = true)]
public async Task<ActionResult<string>> Options()
{
var index = _calDavLocalService.GetActionResult(CurrentUser);
if (index != null)
return index;
return _calDavLocalService.OptionsData(Request, CurrentUser);
}
[AcceptVerbs("PROPFIND")]
[Route("events")]
[Route("events/{id}")]
[ApiExplorerSettings(IgnoreApi = true)]
[Route("{id}")]
public IActionResult PropFind([FromRoute] string id = null)
{
var index = _calDavLocalService.GetActionResult(CurrentUser);
if (index != null)
return index;
var propFindData = _calDavLocalService.PropFindData(id, Request, CurrentUser);
return propFindData;
}
[AcceptVerbs("PROPPATCH")]
[Route("events/{id}")]
[ApiExplorerSettings(IgnoreApi = true)]
[Route("{id}")]
public IActionResult Proppatch([FromRoute] string id = null)
{
var index = _calDavLocalService.GetActionResult(CurrentUser);
if (index != null)
return index;
var propFindData = _calDavLocalService.PropFindData(id, Request, CurrentUser);
return propFindData;
}