withSIX.Play.Core.Games.Legacy.ServerQuery.ServerQueryOverallState.ServerQueryOverallState C# (CSharp) Method

ServerQueryOverallState() public method

public ServerQueryOverallState ( ) : System
return System
        public ServerQueryOverallState() {
            this.WhenAnyValue(x => x.UnProcessed)
                .Select(x => x > 0)
                .DistinctUntilChanged()
                .Subscribe(x => Active = x);

            this.WhenAnyValue(x => x.Progress)
                .Subscribe(x => { UnProcessed = Maximum - x; });
        }