/// <summary>
        /// Initializes a new instance of the <see cref="T:Cmis.Service.CmisJsonServiceController"/> class.
        /// </summary>
        /// <param name="repositoryService">CMIS repository service instance.</param>
        public CmisJsonServiceController(ICmisRepositoryService repositoryService, ILogger <CmisJsonServiceController> logger)
        {
            _repositoryService  = repositoryService;
            _logger             = logger;
            _serializerSettings = new JsonSerializerSettings
            {
                Converters = new List <JsonConverter>()
            };

            _serializerSettings.Converters.Add(new CmisRepositoryInfoJsonConverter());
            _serializerSettings.Converters.Add(new CmisRepositoryShortInfoJsonConverter());
            _serializerSettings.Formatting = Formatting.Indented;
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:Cmis.Service.CmisAtomServiceController"/> class.
 /// </summary>
 /// <param name="repositoryService">CMIS repository service instance.</param>
 public CmisAtomServiceController(ICmisRepositoryService repositoryService, ILogger <CmisAtomServiceController> logger)
 {
     _repositoryService = repositoryService;
     _serviceConverter  = new AtomServiceXDocumentConverter();
     _logger            = logger;
 }