public TrinketDtpServer Create(TrinketStartupConfiguration startupConfiguration)
        {
            var pipeName = DIM_PIPE_NAME_PREFIX + startupConfiguration.TargetProcessId;
             logger.Info("Pipe Name: " + pipeName);

             var rithFactoriesByOpcodes = new Dictionary<byte, Func<uint, RemotelyInitializedTransactionHandler>>();
             var instructionSet = new DictionaryInstructionSet(rithFactoriesByOpcodes);
             var transportNode = transportNodeFactory.CreateNode(NodeRole.Server, pipeName, instructionSet.Wrap());
             var wrapper = new TrinketDtpServerImpl(streamFactory, bootstrapConfigurationGenerator, transportNode, startupConfiguration);
             wrapper.Preinitialize(rithFactoriesByOpcodes);
             return wrapper;
        }
Exemplo n.º 2
0
        public TrinketDtpServer Create(TrinketStartupConfiguration startupConfiguration)
        {
            var pipeName = DIM_PIPE_NAME_PREFIX + startupConfiguration.TargetProcessId;

            logger.Info("Pipe Name: " + pipeName);

            var rithFactoriesByOpcodes = new Dictionary <byte, Func <uint, RemotelyInitializedTransactionHandler> >();
            var instructionSet         = new DictionaryInstructionSet(rithFactoriesByOpcodes);
            var transportNode          = transportNodeFactory.CreateNode(NodeRole.Server, pipeName, instructionSet.Wrap());
            var wrapper = new TrinketDtpServerImpl(streamFactory, bootstrapConfigurationGenerator, transportNode, startupConfiguration);

            wrapper.Preinitialize(rithFactoriesByOpcodes);
            return(wrapper);
        }