public virtual void X() { var items = new object[0]; var task = Task.FromResult(default(object)); var interceptorValues = new InterceptionInformation(this, null, "X", items, task); ProxyInterceptor.Invoke(interceptorValues); }
public override void X() { //var items = new[] { t, value, va, sd, sdsd, asda }; var items = new object[0]; var task = new Task <object>(executeTest, items); var interceptorValues = new InterceptionInformation(this, null, "X", items, task); var result = ProxyInterceptor.Invoke(interceptorValues); }
public override int TestX() { var items = new object[0]; var task = Task.FromResult <object>(default(int)); var interceptorValues = new InterceptionInformation(this, null, "Test", items, task); var result = ProxyInterceptor.Invoke(interceptorValues); return((int)result); }
//public Test3() //{ // Value = new Test3(); //} //public Test3(Test2 value) : this() //{ // Value = value; //} public override string Test(string t, object value, object va, object sd, object sdsd, object asda) { //var items = new[] { t, value, va, sd, sdsd, asda }; var items = new object[6]; items[0] = t; items[1] = value; items[2] = va; items[3] = sd; items[4] = sdsd; items[5] = asda; var task = new Task <object>(executeTest, items); var interceptorValues = new InterceptionInformation(this, null, "Test", items, task); var result = ProxyInterceptor.Invoke(interceptorValues); return((string)result); }
public object Invoke(InterceptionInformation callDescription) { return(callDescription.Next().Result); }