English 中文(简体)
在C#和WCF之间交换物体
原标题:Sharing objects between threads in C# and WCF

我有一台服务器,显示SOAP WCF服务端点。 该服务器还使用一个称为Ensemble(与问题无关)的集团通信框架,以便与同一组别的其他服务器通信。

我需要在倾听其他服务器发送的信息的缝read线和援引时管理世界功能基金常规的透镜之间分享物体/数据。 迄今为止,我确实认为最简单的事——我设立了一个固定的“数据库”类别,成员不变,固定方法,并且使用锁定()来进行总结。 这样,我就可以从服务器和集团通信线上进入这一类别。 我的这个问题是,它打破了整个“OOP事物”,我认为在这里可以做些什么。

问题回答

• 收集从其他服务器中接收信息的缝.镜,进入MyCustomservice。

撰写《世界功能》服务执行班,其行为方式是:

在世界商品基金服务执行类别内撰写活动论文。 这位代表将返回MyCustom Services级。

当你在设立该代表之前以方案方式(主机)瞬时,该代表将回到可以单州或静态的我的保管机构。

从服务班级来看,你总是可以要求这位代表到我的保管机构。 检查无效。





相关问题
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. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签