コード例 #1
0
        // Do full initialization (both static and runtime).
        // This can be called multiple times on a config.
        public static async Task <JobHostContext> CreateAndLogHostStartedAsync(
            this JobHostConfiguration config,
            JobHost host,
            CancellationToken shutdownToken,
            CancellationToken cancellationToken)
        {
            JobHostContext context = await config.CreateJobHostContextAsync(host, shutdownToken, cancellationToken);

            return(context);
        }