我刚开始使用CMIS。我正在尝试从 Apache 站点获取第一个示例(https://chemistry.apache.org/dotnet/getting-started-with-dotcmis.html),但编译器不接受 SessionFactory。我究竟做错了什么?
using System;
using System.Collections.Generic;
using System.Linq;
using DotCMIS;
using DotCMIS.Client;
namespace CMIS_TestAndExplore
{
class Program
{
static void Main(string[] args)
{
Dictionary<string, string> parameters = new Dictionary<string, string>();
parameters[SessionParameter.BindingType] = BindingType.AtomPub;
parameters[SessionParameter.AtomPubUrl] = "http://<http://localhost:8081/inmemory/atom";
parameters[SessionParameter.User] = "test";
parameters[SessionParameter.Password] = "";
SessionFactory factory = SessionFactory.NewInstance();
ISession session = factory.GetRepositories(parameters)[0].CreateSession();
}
}
}