English 中文(简体)
在Windows服务开办阶段完成网络配置
原标题:Wait for network configuration to be complete in Windows Service startup

我团队目前的项目涉及Windows Services通过WCF在几台机器中进行大量通信。 我们偶尔会在开办时遇到问题,在那里,我们怀疑服务是在机器IP连接完全配置之前开始的。

任何人都知道或建议如何核实这种联系,或者如何普遍保证网络连接完全安装在视窗箱上? 各种Windows flavours的解决方案需要(XP/Vista/Win7和服务器2003/2008/2010、32比照和64)。 可以假定“Net”3.5的存在。

Many thanks! Armin

问题回答

你可以尝试使你的服务依赖于服务器服务。 这在过去帮助我解决了这种问题。

http://wiki.blackviper.com/wiki/Network_Connections”rel=“nofollow noreferer”>。

我的猜测是,在这项服务开始后,网络连接已充分配置。 这值得尝试。





相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签