使用ServiceStack和不同的IOC容器LightInject,而不是默认的,我需要注册什么才能使依赖类(ServiceStackController、服务等)获得正确的网关。示例:
LightContainer.Register<ServiceStack.Web.IServiceGatewayFactory>(x => new ApiServiceGatewayFactorySpeakerRequestReq() { Id= new Guid("deda0678-cea5-4c23-b6b0-af2455
Hangfire有自己的IOC实现,该实现已经集成到Funq适配器中。我试图使用IGatewayService调用inproc服务。 // I want to use gateway here to call an inproc service}Container.Register<IServiceGatewayFactory
我的任务是通过模板10使用MVVM接管一个部分开发的大型复杂的UWP应用程序,该应用程序需要使用内部开发的webservices,这需要用于几乎每一个功能,从初始登录页面开始。到目前为止,我能想到三种方法:
创建公共Globals类并将实例作为公共静态属性:c# public class Globals { private static Ou