CmisSync.Lib.Cmis.ConvenienceExtenders.CmisConvenienceExtenders.AreChangeEventsSupported C# (CSharp) Method

AreChangeEventsSupported() public static method

Detect whether the repository has the ChangeLog capability.
public static AreChangeEventsSupported ( this session ) : bool
session this The Cmis Session
return bool
        public static bool AreChangeEventsSupported(this ISession session) {
            try {
                return session.RepositoryInfo.Capabilities.ChangesCapability == CapabilityChanges.All ||
                    session.RepositoryInfo.Capabilities.ChangesCapability == CapabilityChanges.ObjectIdsOnly;
            } catch (NullReferenceException) {
                return false;
            }
        }