/// <inheritdoc /> public override Task <BoolResult> StartupAsync(Context context) { var startupTask = base.StartupAsync(context); _startupCompletion.LinkToTask(startupTask); return(startupTask); }
/// <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); }
/// <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); }