static internal IObject CreateCommandModel(ClassFactory classFactory, CommandAdapter commandModelAdapter) { Type parameterType = GetType(classFactory, commandModelAdapter.GetParameterTypeInfo()); Type resultType = GetType(classFactory, commandModelAdapter.GetResultTypeInfo()); Type commandType = typeof(Command <, ,>).MakeGenericType(typeof(CommandState), parameterType, resultType); return(ActivateObjectInstance(classFactory, commandModelAdapter, commandType)); }