예제 #1
0
 public AttributeResolverI()
 {
     try
     {
         Type cl = typeof(ConnectionHelper);
         Add("parent", cl.GetMethod("GetParent") !);
         Add("id", cl.GetMethod("GetId") !);
         Add("state", cl.GetMethod("GetState") !);
         AttrsUtil.AddConnectionAttributes(this, cl);
     }
     catch (Exception)
     {
         Debug.Assert(false);
     }
 }
예제 #2
0
            public AttributeResolverI()
            {
                try
                {
                    Type cl = typeof(DispatchHelper);
                    Add("parent", cl.GetMethod("GetParent") !);
                    Add("id", cl.GetMethod("GetId") !);

                    AttrsUtil.AddConnectionAttributes(this, cl);

                    Type clc = typeof(Current);
                    Add("operation", cl.GetMethod("GetCurrent") !, clc.GetProperty("Operation") !);
                    Add("identity", cl.GetMethod("GetIdentity") !);
                    Add("facet", cl.GetMethod("GetCurrent") !, clc.GetProperty("Facet") !);
                    Add("current", cl.GetMethod("GetCurrent") !, clc.GetProperty("RequestId") !);
                    Add("mode", cl.GetMethod("GetMode") !);
                }
                catch (Exception)
                {
                    Debug.Assert(false);
                }
            }