Exemplo n.º 1
0
        public void Init()
        {
            Container smapContainer = new();

            container = new SMContainer(smapContainer);
            container.Configuration.Configure((IRegister cnf) =>
            {
                cnf.RegisterAllNetXP();
            });

            // Make a file with name unversionSettings.json with the follow data:
            // {
            //      "ServiceManager": {
            //          "ServiceName": "DMC-Device-Debug",
            //          "ServicePath": "C:\Program Files (x86)\DMC-Debug\DMC.Device.WindowService.exe"
            //      }
            // }
            var confBuilder = new ConfigurationBuilder()
                              .AddJsonFile("unversionSettings.json");
            var conf = confBuilder.Build();

            //Extracting data
            this.ServiceName = conf.GetSection("ServiceManager:ServiceName").Value;
            this.ServicePath = conf.GetSection("ServiceManager:ServicePath").Value;
        }
Exemplo n.º 2
0
        public void Init()
        {
            Container smapContainer = new Container();

            container = new SMContainer(smapContainer);
            container.Configuration.Configure((IRegister cnf) =>
            {
                cnf.RegisterAllNetXP();
            });
        }
Exemplo n.º 3
0
        public void Init()
        {
            Container smapContainer = new Container();

            container = new SMContainer(smapContainer);
            container.Configuration.Configure((IRegister cnf) =>
            {
                cnf.AddNetXPNetFrameworkRegisters(container);
            });
        }
Exemplo n.º 4
0
        public void Init()
        {
            Container smapContainer = new Container();

            c = new SMContainer(smapContainer);
            c.Configuration.Configure((IRegister cnf) =>
            {
                cnf.RegisterAllNetXP();
            });

            this.ISymetric = this.c.Resolve <ISymetricCrypt>();
        }
Exemplo n.º 5
0
        public void Init()
        {
            var container = new Container();

            c = new SMContainer(container);
            container.Configure(cnf =>
            {
                SMRegisterExpression smre = new SMRegisterExpression(cnf, container);
                CompositionRoot.AddNetXPNetFrameworkRegisters(smre, c);
            });

            this.ISymetric = this.c.Resolve <ISymetricCrypt>();
        }