public ResourceRouter(IHandler parent, object instance, SerializationRegistry formats) { Parent = parent; Instance = instance; Type = instance.GetType(); Serialization = formats; Methods = new List <MethodProvider>(AnalyzeMethods()); }
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); }