public void Handle(AddictionalData data, object tag)
 {
     foreach (var handler in _handlers)
     {
         try
         {
             handler.Handle(data, tag);
         }
         catch (Exception e)
         {
             Log.ErrorFormat(e, "Error while handling [{0}] data", handler.GetType().Name);
         }
     }
 }
        public AddictionalData Prepare(object tag)
        {
            var data = new AddictionalData();

            foreach (var handler in _handlers)
            {
                try
                {
                    handler.Prepare(data, tag);
                }
                catch (Exception e)
                {
                    Log.ErrorFormat(e, "Error while preparing [{0}] data", handler.GetType().Name);
                }
            }
            return(data);
        }
示例#3
0
 public async Task <AddictionalData> SyncAddictionalData(AddictionalData data)
 {
     return(await Client.CallMethod <AddictionalData>("SyncAddictionalData", new object[] { data }));
 }