Ejemplo n.º 1
0
        internal void ValidateWebRTCState(params WebRTCState[] desiredStates)
        {
            Debug.Assert(desiredStates.Length > 0);

            ValidateNotDisposed();

            WebRTCState curState = State;

            if (!curState.IsAnyOf(desiredStates))
            {
                throw new InvalidOperationException("The WebRTC is not in a valid state. " +
                                                    $"Current State : { curState }, Valid State : { string.Join(", ", desiredStates) }.");
            }
        }