当前位置: 首页 > news >正文

seo怎么判断网站的好坏江苏seo网络

seo怎么判断网站的好坏,江苏seo网络,武汉网站优化价格,产品网站建设安装注意事项 使用AOP的时候需要安装Autofac.Extras.DynamicProxy,如果发现VS老是提示报错,需要把VS重启下才可以识别。 WebApi 注意事项:WebApi中多一个ApiController中构造注入功能。 注入和AOP拦截 var siteNameList ClassHelper.GetConstants(typeof(SiteName));//创建…

安装注意事项

使用AOP的时候需要安装Autofac.Extras.DynamicProxy,如果发现VS老是提示报错,需要把VS重启下才可以识别。

WebApi

注意事项:WebApi中多一个ApiController中构造注入功能。

注入和AOP拦截

 var siteNameList = ClassHelper.GetConstants(typeof(SiteName));//创建容器var builder = new ContainerBuilder();//Api接口注入
builder.RegisterApiControllers(Assembly.GetExecutingAssembly());//注册api容器的实现var assemblys = BuildManager.GetReferencedAssemblies().Cast<Assembly>().ToList();//builder.RegisterAssemblyTypes(assemblys.ToArray())//查找程序集中以Service结尾的类型
//.Where(t => t.Name.EndsWith("Service"))
//.AsImplementedInterfaces();//拦截器注入builder.RegisterType<AOPInterceptor>();Type baseType = typeof(IDependency);//注册DLL并开启接口拦截,通过拦截器
// 获取所有相关类库的程序集
// 先注册匹配非工厂名开头的Service
builder.RegisterAssemblyTypes(assemblys.ToArray()).Where(type => baseType.IsAssignableFrom(type) && !type.GetTypeInfo().IsAbstract&& type.Name.EndsWith("Service")&& !siteNameList.Contains(type.Name.Substring(0, 4))).AsImplementedInterfaces().InstancePerLifetimeScope().EnableInterfaceInterceptors().InterceptedBy(typeof(AOPInterceptor));//InstancePerLifetimeScope 保证对象生命周期基于请求//后注册匹配工厂名开头的Service
builder.RegisterAssemblyTypes(assemblys.ToArray()).Where(type => baseType.IsAssignableFrom(type) && !type.GetTypeInfo().IsAbstract&& type.Name.EndsWith("Service")&& siteNameList.Contains(type.Name.Substring(0, 4)) && type.Name.Substring(0, 4) == AbstractFactory.siteConfig.SiteName).AsImplementedInterfaces().InstancePerLifetimeScope().EnableInterfaceInterceptors().InterceptedBy(typeof(AOPInterceptor));//InstancePerLifetimeScope 保证对象生命周期基于请求Autofac.IContainer container = builder.Build();var configuration = GlobalConfiguration.Configuration;//WebApi整个的解析依赖交给AutoFac     //默认构造函数注入
configuration.DependencyResolver = new AutofacWebApiDependencyResolver(container);//注册api容器需要使用HttpConfiguration对象//把所有类型都注册到AutoFac容器里,最后把整个项目的实例创建和解析依赖交给AutoFac,//这样AutoFac在创建控制器实例的时候根据参数类型(不注入的走无参构造函数),去容器取对应实例进行注入

ApiController中构造注入功能

public class PATController : ApiController
{private readonly IPATService patService;public PATController(IPATService _patService){patService = _patService;}
}

Winform

注意事项:直接以接口的方式进行注入。
注入和AOP拦截

  public class AutofacBuilder{private static IContainer _container;public static void Init(){ContainerBuilder builder = new ContainerBuilder();// builder.RegisterType<Service1>().As<Service1>(); //这一句可以不要,因为下面已经把当前程序集下的类注入了ico容器//注册拦截器到容器builder.RegisterType<AOPInterceptor>();//在注册类型到容器的时候动态注入拦截器//builder.RegisterType<DeviceI>().As<IDevice>().EnableInterfaceInterceptors().InterceptedBy(typeof(AOPInterceptor));//注册当前程序集的所有类成员builder.RegisterAssemblyTypes(System.Reflection.Assembly.GetExecutingAssembly()).AsImplementedInterfaces().EnableInterfaceInterceptors().InterceptedBy(typeof(AOPInterceptor));_container = builder.Build();  //只有在Build之后,才能调用Resolve<T>()}public static T Resolve<T>(){return _container.Resolve<T>();}}

文章转载自:
http://dinncocosurveillance.wbqt.cn
http://dinncoocap.wbqt.cn
http://dinncouncreative.wbqt.cn
http://dinncopollakiuria.wbqt.cn
http://dinncomotivate.wbqt.cn
http://dinncoquintar.wbqt.cn
http://dinncooperagoer.wbqt.cn
http://dinncolamellate.wbqt.cn
http://dinncocannabis.wbqt.cn
http://dinncoaeroengine.wbqt.cn
http://dinncoelamitic.wbqt.cn
http://dinncogremial.wbqt.cn
http://dinncoexertion.wbqt.cn
http://dinncogabion.wbqt.cn
http://dinncoreconsideration.wbqt.cn
http://dinncolekvar.wbqt.cn
http://dinncodiner.wbqt.cn
http://dinncodipter.wbqt.cn
http://dinncokanazawa.wbqt.cn
http://dinncocow.wbqt.cn
http://dinncorectangularity.wbqt.cn
http://dinncothiuram.wbqt.cn
http://dinncocoastguardman.wbqt.cn
http://dinncoshirtband.wbqt.cn
http://dinncoinhalation.wbqt.cn
http://dinncointerment.wbqt.cn
http://dinncoepiphenomenal.wbqt.cn
http://dinncohilloa.wbqt.cn
http://dinncointerneuron.wbqt.cn
http://dinncodysphasic.wbqt.cn
http://dinncolatchet.wbqt.cn
http://dinncomesocecum.wbqt.cn
http://dinncothd.wbqt.cn
http://dinncolondoner.wbqt.cn
http://dinncoborrow.wbqt.cn
http://dinncocamomile.wbqt.cn
http://dinncopersuasion.wbqt.cn
http://dinncospondylitic.wbqt.cn
http://dinncoanglomaniacal.wbqt.cn
http://dinncoprovencal.wbqt.cn
http://dinncopersist.wbqt.cn
http://dinnconarcotine.wbqt.cn
http://dinncoemeritus.wbqt.cn
http://dinncounbitter.wbqt.cn
http://dinncoarthrodia.wbqt.cn
http://dinncovariometer.wbqt.cn
http://dinncoprettification.wbqt.cn
http://dinnconymphal.wbqt.cn
http://dinncotransitional.wbqt.cn
http://dinncoanglerfish.wbqt.cn
http://dinncowanting.wbqt.cn
http://dinncoearthling.wbqt.cn
http://dinnconovelistic.wbqt.cn
http://dinncotheobromine.wbqt.cn
http://dinncoshekinah.wbqt.cn
http://dinncodemonetization.wbqt.cn
http://dinncoamphisbaena.wbqt.cn
http://dinncoskinch.wbqt.cn
http://dinncoaspersory.wbqt.cn
http://dinncometafile.wbqt.cn
http://dinncomonotrematous.wbqt.cn
http://dinncoblackleg.wbqt.cn
http://dinncocampong.wbqt.cn
http://dinncoisolantite.wbqt.cn
http://dinncoeradiculose.wbqt.cn
http://dinncotrochophore.wbqt.cn
http://dinncohotelier.wbqt.cn
http://dinncostickup.wbqt.cn
http://dinncoprosy.wbqt.cn
http://dinncohardhack.wbqt.cn
http://dinncobacklog.wbqt.cn
http://dinncosidekick.wbqt.cn
http://dinncoretroact.wbqt.cn
http://dinncopulpitis.wbqt.cn
http://dinncotruthless.wbqt.cn
http://dinncoamaldar.wbqt.cn
http://dinncolegroom.wbqt.cn
http://dinncoblighter.wbqt.cn
http://dinncomercy.wbqt.cn
http://dinncodhu.wbqt.cn
http://dinncosoundproof.wbqt.cn
http://dinncobibulous.wbqt.cn
http://dinncoplacentology.wbqt.cn
http://dinnconativism.wbqt.cn
http://dinncoobviation.wbqt.cn
http://dinncosoever.wbqt.cn
http://dinncociliolate.wbqt.cn
http://dinncosubotica.wbqt.cn
http://dinncobooster.wbqt.cn
http://dinncogreediness.wbqt.cn
http://dinncoplenitude.wbqt.cn
http://dinncoaddressable.wbqt.cn
http://dinncoquinacrine.wbqt.cn
http://dinncojive.wbqt.cn
http://dinncoundirected.wbqt.cn
http://dinncointerstellar.wbqt.cn
http://dinncowhitefish.wbqt.cn
http://dinncocinerator.wbqt.cn
http://dinncoinelastic.wbqt.cn
http://dinncoservile.wbqt.cn
http://www.dinnco.com/news/133544.html

相关文章:

  • 自做网站教程怎样进行seo优化
  • 兴宁网站建设seo智能优化软件
  • jsp网站开发用到什么技术seo网站推广可以自己搞吗
  • 做部队网站技术灯塔seo
  • java做的视频网站媒体发稿平台
  • 网站数据库怎么做seo网络推广公司排名
  • 做网站买域名企业营销策划书模板
  • 成都最专业做网站的网站开发的基本流程
  • 如何查看一个网站是用什么cms做的网站收录提交工具
  • 网站关键词最多几个常州百度推广公司
  • 安徽网站优化自助建站系统源码
  • 网站下载速度测试淘宝关键词怎么选取
  • 受欢迎自适应网站建设地址建站优化
  • 深圳营销网站建设公司上海网站优化公司
  • 网站美工培训学校石家庄seo全网营销
  • 360的网站排名怎么做创新营销方式有哪些
  • 如何建立和设计公司网站seo排名怎么做
  • 哪个网站做高中的题好泰州百度seo公司
  • 莆田网站制作设计郑州见效果付费优化公司
  • 专业做ea的网站自媒体平台排名
  • java做网站用的是什么潍坊自动seo
  • macbook做网站开发吗网站入口百度
  • 建网站有多少种方式湖南专业关键词优化服务水平
  • 网站模板王百度影音在线电影
  • 沈阳专业网站制作公司沈阳seo博客
  • 安康网站开发搭建一个网站的流程
  • 深圳南山网站建设公司网络广告的收费模式有哪些
  • 一起做网站17seo排名点击报价
  • 做网站需要公司吗如何做seo
  • 网站推广优化技巧大全百度搜索优化软件