CmisSync.Lib.Cmis.OperationContextFactory.CreateContext C# (CSharp) Method

CreateContext() public static method

Creates an operation context.
public static CreateContext ( ISession session, bool cacheEnabled, bool includePathSegments ) : IOperationContext
session ISession Cmis session.
cacheEnabled bool If set to true cache enabled.
includePathSegments bool If set to true include path segments.
return IOperationContext
        public static IOperationContext CreateContext(ISession session, bool cacheEnabled, bool includePathSegments, params string[] elements) {
            HashSet<string> filter = CreateFilter(elements);
            HashSet<string> renditions = new HashSet<string>();
            renditions.Add("cmis:none");
            return session.CreateOperationContext(
                filter: filter,
                includeAcls: false,
                includeAllowableActions: true,
                includePolicies: false,
                includeRelationships: IncludeRelationshipsFlag.None,
                renditionFilter: renditions,
                includePathSegments: includePathSegments,
                orderBy: null,
                cacheEnabled: cacheEnabled,
                maxItemsPerPage: MaximumItemsPerPage);
        }