Exemplo n.º 1
0
        public void TestMethodImplementationMapping2()
        {
            DummyCommunicationService dummyComm = new DummyCommunicationService();

            LocalShareContext localShareContext = new LocalShareContext();

            localShareContext.RegisterLocalSharedService <IMyLocalService, MyLocalService>();

            localShareContext.Init();

            var myService = localShareContext.GetExport <IMyLocalService>();

            Assert.Equal(typeof(MyLocalService), myService.GetType());
        }
Exemplo n.º 2
0
 public SessionController(LocalShareContext context, ILogger <SessionController> logger)
 {
     _context = context;
     _logger  = logger;
 }