示例#1
0
        public VostokHost([NotNull] VostokHostSettings settings)
        {
            this.settings = settings ?? throw new ArgumentNullException(nameof(settings));

            ShutdownTokenSource = new CancellationTokenSource();

            onApplicationStateChanged = new CachingObservable <VostokApplicationState>();
            ChangeStateTo(VostokApplicationState.NotInitialized);
        }