public ExecutionModel(IExecutionMessage message) { IsChildAction = message.IsChildAction; ExecutedType = message.ExecutedType; ExecutedMethod = message.ExecutedMethod; Duration = message.Duration; ActionName = message.ActionName; ControllerName = message.ControllerName; var filter = message as IFilterMessage; if (filter != null) { Category = filter.Category; } var bounds = message as IBoundedFilterMessage; if (bounds != null) { Bounds = bounds.Bounds; } }
public ExecutionModel(IExecutionMessage message) { IsChildAction = message.IsChildAction; ExecutedType = message.ExecutedType; ExecutedMethod = message.ExecutedMethod; Duration = message.Duration; ActionName = message.ActionName; ControllerName = message.ControllerName; var filter = message as IFilterMessage; if (filter != null) { Category = filter.Category; } var bounds = message as IBoundedFilterMessage; if (bounds != null) { Bounds = bounds.Bounds; } }