コード例 #1
0
        public async Task <IPageEdit> BeginEditAsync(IPage page, CancellationToken cancellationToken = default)
        {
            if (page == null)
            {
                throw new ArgumentNullException(nameof(page));
            }

            var editorId = await GetEditorIdAsync(cancellationToken);

            return(await editSessionRepository.CreateEditAsync(page, editorId, cancellationToken));
        }