Пример #1
0
        /// <summary>
        /// Return the latest state of required list types from server
        /// </summary>
        public List <TData> GetLatestRemoteObjectsList <TData>(Dictionary <string, string> parameters = null) where TData : class, new()
        {
            List <TData> data = BuilderResolver.GetListObjectReceiver <TData>().Receive <TData>(parameters);

            return(data);
        }
Пример #2
0
        /// <summary>
        /// Create the instance of decired type
        /// </summary>
        /// <typeparam name="TData">Type to generate</typeparam>
        public TData GenerateNew <TData>(Dictionary <string, string> parameters = null) where TData : class, IDataGeneratable, new()
        {
            TData data = BuilderResolver.GetObjectBuilder <TData>().Create <TData>(parameters);

            return(data);
        }