Beispiel #1
0
 public Agent(
     string machineId,
     IClient client,
     bool fallbackToLocalOnDisconnection
 )
 {
     LauncherFactory launcherFactory = new LauncherFactory();
     AppInitializedDetectorFactory appInitializedDetectorFactory = new AppInitializedDetectorFactory();
     this.localOps = new LocalOperations(machineId, launcherFactory, appInitializedDetectorFactory);
     this.netOps = new NetworkProxy( machineId, client, localOps );
     this.proxy = new DirigentControlSwitchableProxy(selectProxyImpl(client.IsConnected()));
     this.client = client;
     this.fallbackToLocalOnDisconnection = fallbackToLocalOnDisconnection;
 }
Beispiel #2
0
        public Agent(
            string machineId,
            IClient client,
            bool fallbackToLocalOnDisconnection,
            string rootForRelativePaths
            )
        {
            LauncherFactory launcherFactory = new LauncherFactory();
            AppInitializedDetectorFactory appInitializedDetectorFactory = new AppInitializedDetectorFactory();

            this.localOps = new LocalOperations(machineId, launcherFactory, appInitializedDetectorFactory, rootForRelativePaths);
            this.netOps   = new NetworkProxy(machineId, client, localOps);
            this.proxy    = new DirigentControlSwitchableProxy(selectProxyImpl(client.IsConnected()));
            this.client   = client;
            this.fallbackToLocalOnDisconnection = fallbackToLocalOnDisconnection;
        }