示例#1
0
        public ResourceRouter(IHandler parent, object instance, SerializationRegistry formats)
        {
            Parent = parent;

            Instance = instance;
            Type     = instance.GetType();

            Serialization = formats;

            Methods = new List <MethodProvider>(AnalyzeMethods());
        }
示例#2
0
        public MethodProvider(IHandler parent, MethodInfo method, object instance, MethodAttribute metaData, SerializationRegistry formats)
        {
            Parent = parent;

            Method        = method;
            MetaData      = metaData;
            Instance      = instance;
            Serialization = formats;

            ParsedPath = PathHelper.Parse(metaData.Path);
        }