摘要:
WCF经常会有一些性能检测,全局异常,跨域设置,动态路由设置等,可以通过以下类实现 (1)拦截类,可以实现性能检测和全局异常处理 (2)异常类 (3)行为特性标签 (4)操作的拦截特性 (5)服务类的拦截特性 if (!operation.Behaviors.Any(d => d is WebGet 阅读全文
摘要:
public static Color getAverageColor(Bitmap bmp) { //Used for tally int r = 0; int g = 0; int b = 0; int total = 0; for (int x = 0; x < bmp.Width; x++) 阅读全文