Beispiel #1
0
        protected virtual void Start()
        {
            var token = this.GetCancellationTokenOnDestroy();

            if (receivedStringMessage != null)
            {
                receivedStringMessage.Subscribe(ProcessStringMessage).AddTo(token);
            }

            if (receivedBytesMessage != null)
            {
                receivedBytesMessage.Subscribe(ProcessByteArrayMessage).AddTo(token);
            }
        }