Inheritance: IActionMetadata
コード例 #1
0
        public IActionMetadata GetMetadataFor(object service, string action, object model)
        {
            metadata = new ActionMetadata 
            { 
                Service = service, 
                ServiceType = service.GetType(),
                Action = action, 
                Model = model ?? new { },
                ModelType = model == null ? typeof(object) : model.GetType()
            };

            SetOrderedProperties();
            
            return metadata;           
        }
コード例 #2
0
        public IActionMetadata GetMetadataFor(object service, string action, object model)
        {
            metadata = new ActionMetadata
            {
                Service     = service,
                ServiceType = service.GetType(),
                Action      = action,
                Model       = model ?? new { },
                ModelType   = model == null ? typeof(object) : model.GetType()
            };

            SetOrderedProperties();

            return(metadata);
        }