我刚刚开始使用CMIS。我正在尝试从Apache site获取第一个可以工作的示例(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();
}
}}
发布于 2015-06-05 18:05:01
结果发现我只是遗漏了一条using语句。我只需要补充一句:
using DotCMIS.Client.Impl;https://stackoverflow.com/questions/30650635
复制相似问题