示例#1
0
        public void Run(IUnityContainer Container)
        {
            LynqTest.Test();
            AGeneric.ExecuteWithType();
            AGeneric.ExecuteWithNoType();

            PlayingWithEnumerable.Test();
        }
示例#2
0
        public static void ExecuteWithType()
        {
            string s = AGeneric.ExecuteJsonCallAction <object>(() =>
            {
                return(new string("Hello"));
            }, x => new BaseResponse
            {
                Data             = new { UpdateProducts = true, UpdateCart = true },
                StateInformation = x.ToString()
            });

            Console.WriteLine(s);
        }
示例#3
0
        public static void ExecuteWithNoType()
        {
            string sNoGeneric = AGeneric.ExecuteJsonCallAction(() =>
            {
                return(new string("NoGeneric"));
            }, x => new BaseResponse
            {
                Data             = x,
                StateInformation = "MaisVideInfo"
            });

            Console.WriteLine(sNoGeneric);
        }