C#windows服务和DLL [英] C# windows service and DLL

查看:411
本文介绍了C#windows服务和DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我开发了Windows服务,它将调用业务逻辑

我在单个DLL中定义(动态链接库)。



我是否需要添加DLL作为参考或仅在运行时使用程序集加载DLL。



请建议哪种方法有更好的性能



我尝试过:



Hi,

I have developed Windows Service which will Call a Business Logic
which i defined in single DLL(Dynamic-link library).

Do i need add DLL as a refernce OR load DLL only in Run time using Assembly.

Please Suggest which approach will have better perfomance

What I have tried:

Hi,

I have developed Windows Service which will Call a Business Logic 
which i defined in single DLL(Dynamic-link library).

Do i need add DLL as a refernce OR load DLL only in Run time using Assembly.

Please Suggest which approach will have better perfomance

推荐答案

将其添加为参考。


在这两种情况下,您运行的是完全相同的代码。两者都不会给你提供更好的表现。
In both cases, you're running the exact same code. Neither is going to give you better performance over the other.


这篇关于C#windows服务和DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆