public TrinketDtpServerImpl(IStreamFactory streamFactory, BootstrapConfigurationGenerator bootstrapConfigurationGenerator, IDtpNode transportNode, TrinketStartupConfiguration startupConfiguration)
 {
     this.streamFactory = streamFactory;
      this.bootstrapConfigurationGenerator = bootstrapConfigurationGenerator;
      this.transportNode = transportNode;
      this.startupConfiguration = startupConfiguration;
 }
Beispiel #2
0
 public TrinketDtpServerImpl(IStreamFactory streamFactory, BootstrapConfigurationGenerator bootstrapConfigurationGenerator, IDtpNode transportNode, TrinketStartupConfiguration startupConfiguration)
 {
     this.streamFactory = streamFactory;
     this.bootstrapConfigurationGenerator = bootstrapConfigurationGenerator;
     this.transportNode        = transportNode;
     this.startupConfiguration = startupConfiguration;
 }
 public TrinketBridgeImpl(TemporaryFileService temporaryFileService, ProcessInjectionService processInjectionService, TrinketInternalUtilities trinketInternalUtilities, TrinketStartupConfiguration configuration, TrinketDtpServer trinketDtpServer)
 {
     this.temporaryFileService = temporaryFileService;
      this.processInjectionService = processInjectionService;
      this.trinketInternalUtilities = trinketInternalUtilities;
      this.configuration = configuration;
      this.trinketDtpServer = trinketDtpServer;
 }
Beispiel #4
0
 public TrinketBridgeImpl(TemporaryFileService temporaryFileService, ProcessInjectionService processInjectionService, TrinketInternalUtilities trinketInternalUtilities, TrinketStartupConfiguration configuration, TrinketDtpServer trinketDtpServer)
 {
     this.temporaryFileService     = temporaryFileService;
     this.processInjectionService  = processInjectionService;
     this.trinketInternalUtilities = trinketInternalUtilities;
     this.configuration            = configuration;
     this.trinketDtpServer         = trinketDtpServer;
 }
        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;
        }
Beispiel #6
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);
        }