CmisSync.Lib.Producer.ContentChange.ContentChanges.ContentChanges C# (CSharp) Method

ContentChanges() public method

Initializes a new instance of the ContentChanges class.
public ContentChanges ( ISession session, IMetaDataStorage storage, ISyncEventQueue queue, int maxNumberOfContentChanges = 100, bool isPropertyChangesSupported = false ) : System
session ISession Cmis Session.
storage IMetaDataStorage Meta Data Storage.
queue ISyncEventQueue Event Queue.
maxNumberOfContentChanges int Max number of content changes.
isPropertyChangesSupported bool If set to true is property changes supported.
return System
        public ContentChanges(
            ISession session,
            IMetaDataStorage storage,
            ISyncEventQueue queue,
            int maxNumberOfContentChanges = 100,
            bool isPropertyChangesSupported = false) : base(queue) {
            if (session == null) {
                throw new ArgumentNullException("session");
            }

            if (storage == null) {
                throw new ArgumentNullException("storage");
            }

            if (maxNumberOfContentChanges <= 1) {
                throw new ArgumentException("MaxNumberOfContentChanges must be greater then one", "maxNumberOfContentChanges");
            }

            this.session = session;
            this.storage = storage;
            this.maxNumberOfContentChanges = maxNumberOfContentChanges;
            this.isPropertyChangesSupported = isPropertyChangesSupported;
        }