Пример #1
0
        public static object PullFromPipe(string pipeIdentifier)
        {
            DynamoPipeReceiver receiver = DynamoPipeReceiver.GetReceiver(pipeIdentifier, _converter);

            if (receiver.Update())
            {
                return(receiver.Data);
            }
            return(receiver.Message);
        }
Пример #2
0
 internal static DynamoPipeReceiver GetReceiver(string name, DynamoPipeConverter converter)
 {
     if (_receivers.ContainsKey(name))
     {
         return(_receivers[name]);
     }
     else
     {
         var rec = new DynamoPipeReceiver(name, converter);
         _receivers.Add(name, rec);
         return(rec);
     }
 }