Пример #1
0
        /// <inheritdoc />
        public override Task <BoolResult> StartupAsync(Context context)
        {
            var startupTask = base.StartupAsync(context);

            _startupCompletion.LinkToTask(startupTask);
            return(startupTask);
        }
Пример #2
0
        /// <inheritdoc />
        public override Task <BoolResult> StartupAsync(Context context)
        {
            var startupTask = base.StartupAsync(context);

            if (_setPostInitializationCompletionAfterStartup)
            {
                context.Debug("Linking post-initialization completion task with the result of StartupAsync.");
                _postInitializationCompletion.LinkToTask(startupTask);
            }

            return(startupTask);
        }
Пример #3
0
        /// <inheritdoc />
        public override Task <BoolResult> StartupAsync(Context context)
        {
            var startupTask = base.StartupAsync(context);

            _proactiveCopySession = new Lazy <Task <Result <IReadOnlyContentSession> > >(() => CreateCopySession(context));

            if (_setPostInitializationCompletionAfterStartup)
            {
                context.Debug("Linking post-initialization completion task with the result of StartupAsync.");
                _postInitializationCompletion.LinkToTask(startupTask);
            }

            return(startupTask);
        }