I'm a little curious about why CAS is being extensively used in MVC. A lot of it seems to be suppressedmessages too. I may have misunderstood it but I always thought you didn't need to use CAS if you fully trusted the code/server you used.
我有点好奇为什么CAS被广泛用于MVC。很多似乎也被压制了消息。我可能误解了它,但如果您完全信任您使用的代码/服务器,我一直认为您不需要使用CAS。
1 个解决方案
#1
1
CAS is not used directly by MVC since the MVC binary is security transparent. If you're looking through the source and are curious, the [SuppressMessage] attributes are just there to tell FxCop not to worry about link demands.
由于MVC二进制文件是安全透明的,因此MVC不直接使用CAS。如果您正在查看源代码并且很好奇,那么[SuppressMessage]属性就是告诉FxCop不要担心链接需求。
#1
1
CAS is not used directly by MVC since the MVC binary is security transparent. If you're looking through the source and are curious, the [SuppressMessage] attributes are just there to tell FxCop not to worry about link demands.
由于MVC二进制文件是安全透明的,因此MVC不直接使用CAS。如果您正在查看源代码并且很好奇,那么[SuppressMessage]属性就是告诉FxCop不要担心链接需求。