English 中文(简体)
WCF/WPF Best practice - WCF ChannelFactory andPRISM
原标题:WCF/WPF best practice - WCF ChannelFactory and PRISM

我对“优先事项”框架说几句新话,因此我的问题可能是一个不容置疑的议题。

我建立了由两个项目组成的妇女论坛服务。

  1. The WCF .svc and Web.config project just contains the service definitions.
  2. The service type project that defines the WCF service interface and the service type.

在客户方面,我对我如何对这项服务实行单一、长期代行的做法感到担忧。

我的做法是,利用<条码>ChannelFactory<T>,在我模块内向团结集装箱登记。 这意味着,我的模块必须参考服务类型项目,以获得服务接口(是正确的途径?)。

问题是,当我们需要提供认证,以建立一个渠道,以及如何处理脱节/脱节问题时,如何管理这一渠道。

最佳回答

代理人不应当是海事组织的单一州(或基于团结的单一州),而是应该根据需求建立。 这样,每个符合逻辑的模块就能够随意产生,而不会干扰其他模块。

除你重新处理外,其他做法非常正确。 代理人应当提及服务项目等。

如果你想要实施认证“服务”,那么我会设立另一个称为“认证服务”的类别,并登记在团结的单一州。 这反过来又会提到新的代理,并将涉及与认证/授权有关的所有事项。

设想是让每个逻辑模块都像它是唯一的用途一样行事,而不必担心它所依赖的其他模块。 因此,如果你有两种意见,每个人都可以获得自己相同的感化服务(而且应当对此予以照顾),而澳大利亚感化服务机构本身则依赖代理,因此将提及它。

问题回答

暂无回答




相关问题
WPF convert 2d mouse click into 3d space

I have several geometry meshes in my Viewport3D, these have bounds of (w:1800, h:500, d:25). When a user clicks in the middle of the mesh, I want the Point3D of (900, 500, 25)... How can I achieve ...

Editing a xaml icons or images

Is it possible to edit a xaml icons or images in the expression design or using other tools? Is it possible to import a xaml images (that e.g you have exported) in the expression designer for editing?...

WPF: writing smoke tests using ViewModels

I am considering to write smoke tests for our WPF application. The question that I am faced is: should we use UI automation( or some other technology that creates a UI script), or is it good enough to ...

WPF - MVVM - NHibernate Validation

Im facing a bit of an issue when trying to validate a decimal property on domain object which is bound to a textbox on the view through the viewmodel. I am using NHibernate to decorate my property on ...

How do WPF Markup Extensions raise compile errors?

Certain markup extensions raise compile errors. For example StaticExtension (x:Static) raises a compile error if the referenced class cannot be found. Anyone know the mechanism for this? Is it baked ...

WPF design-time context menu

I am trying to create a custom wpf control, I m wondering how I can add some design-time features. I ve googled and can t seem to get to my goal. So here s my simple question, how can I add an entry ...

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 ...