Esempio n. 1
0
        internal void GetSOP(SOPGeneralMessage Message)
        {
            if (Message.OriginalObject == null)
            {
                IsExpanded = false;
                IsEnabled  = false;

                return;
            }

            _currentMessage = Message;

            MessageId = Message.MessageId;
            var msgId = 0;

            int.TryParse(Message.MessageId, out msgId);
            ServiceLayerClient _client = new ServiceLayerClient();

            var lstSopAsync = _client.GetMessageTypeSOPsAsync((int)Message.GeneralType, msgId);

            var obs = lstSopAsync.ToObservable();

            obs.Subscribe((x) => AddNewSOP(x == null ? null : x.ToList()));
        }