static void Main(string[] args) { try { // Instantiate a new space repository, and add two seperate gates. SpaceRepository repository = new SpaceRepository(); repository.AddGate("tcp://127.0.0.1:123?KEEP"); repository.AddGate("tcp://127.0.0.1:124?KEEP"); // Create a new fifo based space, and insert the ping. repository.AddSpace("pingpong", new SequentialSpace()); repository.Put("pingpong", "ping", 0); // Create two seperate remotespaces and agents. // The agents use their own private remotespace. RemoteSpace remotespace1 = new RemoteSpace("tcp://127.0.0.1:123/pingpong?KEEP"); PingPong a1 = new PingPong("ping", "pong", remotespace1); RemoteSpace remotespace2 = new RemoteSpace("tcp://127.0.0.1:124/pingpong?KEEP"); PingPong a2 = new PingPong("pong", "ping", remotespace2); // Start the agents a1.Start(); a2.Start(); Console.Read(); } catch (Exception e) { throw e; } }
static void Main(string[] args) { string serverUrl = "tcp://" + ConnectionInfo.SERVER_ADDRESS + "/space?KEEP"; Console.WriteLine($"Launching server at '{serverUrl}'"); SpaceRepository repository = new SpaceRepository(); repository.AddGate(serverUrl); SequentialSpace space = new SequentialSpace(); repository.AddSpace(ConnectionInfo.SPACE_NAME, space); Connection.Space = space; Connection.repository = repository; PlayerController newUserProtocol = new PlayerController(); Thread newUserThread = new Thread(new ThreadStart(newUserProtocol.RunProtocol)); newUserThread.Start(); LobbyController lobbyController = new LobbyController(repository); lobbyController.Start(); Console.WriteLine("Server started"); }
public ConferenceWindow(string username, string conferenceName, string password, RemoteSpace conferenceRequests, RemoteSpace LoginSpace) //For host { DataContext = this; this.Password = password; this.username = username; this.ConferenceName = conferenceName; this.LoginSpace = LoginSpace; dlg.FileName = "Presentation"; // Default file name dlg.DefaultExt = ".pdf"; // Default file extension dlg.Filter = "PDF documents (.pdf)|*.pdf"; // Filter files by extension InitializeComponent(); SpaceRepository spaceRepository = new SpaceRepository(); this.TxtToSend = new TextRange(SendField.Document.ContentStart, SendField.Document.ContentEnd); this.MsgList = new ObservableCollection <string>(); this.conference = new ConferenceInitializer(username, conferenceName, MsgList, spaceRepository, this); this.ConferenceRequests = conferenceRequests; this.Loaded += MainWindow_Loaded; Closed += OnClose_Host; SendField.KeyUp += SendField_KeyUp; this.SizeChanged += Resize; SendButton.Click += SendButton_Click; GoBackwards.Click += GoBackwards_Click; GoForward.Click += GoForwad_Click; OpenPresentaion.MouseDown += OpenPresentaion_Click; }
static void Main(string[] args) { if (args.Length != 1) { Console.WriteLine("Please specify your name"); return; } // Instantiate a new Space repository. SpaceRepository repository = new SpaceRepository(); // Add a gate, such that we can connect to it. repository.AddGate("tcp://127.0.0.1:123?CONN"); // Add a new Fifo based space. repository.AddSpace("dtu", new SequentialSpace()); // Insert a tuple with a message. repository.Put("dtu", "Hello student!"); // Instantiate a remotespace (a networked space) thereby connecting to the spacerepository. ISpace remotespace = new RemoteSpace("tcp://127.0.0.1:123/dtu?CONN"); // Instantiate a new agent, assign the tuple space and start it. AgentBase student = new Student(args[0], remotespace); student.Start(); // Wait and retrieve the message from the agent. ITuple tuple = repository.Get("dtu", typeof(string), typeof(string)); // Print the contents to the console. Console.WriteLine(string.Format("{0}, you are attending course {1}", tuple[0], tuple[1])); Console.Read(); }
public PopUpViewSpace(object _BindingContext) { spaceRepository = new SpaceRepository(); InitializeComponent(); BindingContext = _BindingContext; if (String.IsNullOrEmpty(((EspaceViewModel)this.BindingContext).Name) || String.IsNullOrEmpty(((EspaceViewModel)this.BindingContext).Picture) || String.IsNullOrEmpty(((EspaceViewModel)this.BindingContext).Description) ) { txtInfo.Text = "Un ou plusieurs champs vide !"; } else { if (!((EspaceViewModel)this.BindingContext).Capacity.ToString().All(char.IsDigit) || ((EspaceViewModel)this.BindingContext).Capacity == 0) { txtInfo.Text = "La capacity doit être suppérieur à 0"; } else { txtInfo.Text = string.Empty; BtnValider.IsEnabled = true; } } }
static void Main(string[] args) { if (args.Length == 1) { if (args[0] == "producer") { // Create a new space repository, and add a new gate to it. // The gate is using CONN, meaning the connection is NOT persistent. SpaceRepository repository = new SpaceRepository(); repository.AddGate("tcp://127.0.0.1:123?CONN"); // Add a new fifo based space repository.AddSpace("fridge", new SequentialSpace()); // Create a new agent, and let the agent use the local tuple space instead of a networked remotespace. AgentBase alice = new Producer("Alice", repository.GetSpace("fridge")); alice.Start(); return; } else if (args[0] == "consumer") { // The consumers use a remote space to access the space repository. ISpace remotespace = new RemoteSpace("tcp://127.0.0.1:123/fridge?CONN"); List <AgentBase> agents = new List <AgentBase>(); agents.Add(new FoodConsumer("Bob", remotespace)); agents.Add(new FoodConsumer("Charlie", remotespace)); agents.Add(new DrugConsumer("Dave", remotespace)); agents.ForEach(a => a.Start()); Console.Read(); return; } } Console.WriteLine("Please specify [producer|consumer]"); Console.Read(); }
public OctopusAsyncRepository(IOctopusAsyncClient client, RepositoryScope repositoryScope = null) { Client = client; Scope = repositoryScope ?? RepositoryScope.Unspecified(); Accounts = new AccountRepository(this); ActionTemplates = new ActionTemplateRepository(this); Artifacts = new ArtifactRepository(this); Backups = new BackupRepository(this); BuiltInPackageRepository = new BuiltInPackageRepositoryRepository(this); CertificateConfiguration = new CertificateConfigurationRepository(this); Certificates = new CertificateRepository(this); Channels = new ChannelRepository(this); CommunityActionTemplates = new CommunityActionTemplateRepository(this); Configuration = new ConfigurationRepository(this); DashboardConfigurations = new DashboardConfigurationRepository(this); Dashboards = new DashboardRepository(this); Defects = new DefectsRepository(this); DeploymentProcesses = new DeploymentProcessRepository(this); Deployments = new DeploymentRepository(this); Environments = new EnvironmentRepository(this); Events = new EventRepository(this); FeaturesConfiguration = new FeaturesConfigurationRepository(this); Feeds = new FeedRepository(this); Interruptions = new InterruptionRepository(this); LibraryVariableSets = new LibraryVariableSetRepository(this); Lifecycles = new LifecyclesRepository(this); MachinePolicies = new MachinePolicyRepository(this); MachineRoles = new MachineRoleRepository(this); Machines = new MachineRepository(this); Migrations = new MigrationRepository(this); OctopusServerNodes = new OctopusServerNodeRepository(this); PerformanceConfiguration = new PerformanceConfigurationRepository(this); PackageMetadataRepository = new PackageMetadataRepository(this); ProjectGroups = new ProjectGroupRepository(this); Projects = new ProjectRepository(this); ProjectTriggers = new ProjectTriggerRepository(this); Proxies = new ProxyRepository(this); Releases = new ReleaseRepository(this); RetentionPolicies = new RetentionPolicyRepository(this); Schedulers = new SchedulerRepository(this); ServerStatus = new ServerStatusRepository(this); Spaces = new SpaceRepository(this); Subscriptions = new SubscriptionRepository(this); TagSets = new TagSetRepository(this); Tasks = new TaskRepository(this); Teams = new TeamsRepository(this); Tenants = new TenantRepository(this); TenantVariables = new TenantVariablesRepository(this); UserInvites = new UserInvitesRepository(this); UserRoles = new UserRolesRepository(this); Users = new UserRepository(this); VariableSets = new VariableSetRepository(this); Workers = new WorkerRepository(this); WorkerPools = new WorkerPoolRepository(this); ScopedUserRoles = new ScopedUserRoleRepository(this); UserPermissions = new UserPermissionsRepository(this); loadRootResource = new Lazy <Task <RootResource> >(LoadRootDocumentInner, true); loadSpaceRootResource = new Lazy <Task <SpaceRootResource> >(LoadSpaceRootDocumentInner, true); }
/// <summary> /// Get fields for default user directory /// </summary> /// <param name="userId">current logged user Id</param> /// <returns></returns> public IEnumerable <Field> GetAvailableFields(Guid userId) { var defaultDirectoryId = SpaceRepository .GetDefaultSpaceDirectory(userId) .FieldId; return(GetAvailableFields(userId, defaultDirectoryId)); }
public void StartSpace() { this.repository = new SpaceRepository(); this.repository.AddGate($"tcp://{this.ip}:{this.port}?KEEP"); this.repository.AddSpace("chat", new SequentialSpace()); Console.ReadKey(); // while(true){Thread.Sleep(100);} }
public ListSpacesTest() { var context = new InMemoryContext(); var entityFactory = new InMemoryEntityFactory(); _spaceRepository = new SpaceRepository(context); _spaceService = new SpaceService(entityFactory, _spaceRepository); }
public GitFixtures() { _entityFactory = new GitEntityFactory(); SpaceRepository = new SpaceRepository(_configuration.Configuration); PageRepository = new PageRepository(); SpaceService = new SpaceService(SpaceFactory, SpaceRepository); }
static void Main(string[] args) { SpaceRepository repository = new SpaceRepository(); string ip = null; string port = null; if (args.Length == 1) { ip = args[0]; port = "8989"; repository.AddGate($"tcp://{ip}:8989?KEEP"); } else if (args.Length == 2) { ip = args[0]; port = args[1]; repository.AddGate($"tcp://{ip}:{port}?KEEP"); } else { Console.WriteLine("Nenhum IP ou porta foi dado!"); Console.WriteLine("Configuração default será usada!"); ip = "127.0.0.1"; port = "8989"; repository.AddGate("tcp://127.0.0.1:8989?KEEP"); } repository.AddSpace("chat", new SequentialSpace()); Servidor s = new Servidor(ip, port, repository); // string ip = null; // string port = null; // if(args.Length == 1){ // ip = args[0]; // port = "8989"; // } // else if(args.Length == 2){ // ip = args[0]; // port = args[1]; // } // else{ // ip = "127.0.0.1"; // port = "8989"; // } // Servidor s = new Servidor(ip, port); // // Console.ReadKey(); // while(true){Thread.Sleep(100);} Console.Read(); }
public SlideHostFacade(SpaceRepository repo, string identifier, ISlideShow slideShower) { _repo = repo; SlideShower = slideShower; _identifier = identifier; _exposedSpace = new SequentialSpace(); _concealedSpace = new SequentialSpace(); _repo.AddSpace("hub", _exposedSpace); Hub.Running = true; SlideShower.IsHost = true; }
static void Main(string[] args) { if (args.Length > 1) { if (args[0] == "table") { // Instantiate a new space repository and add a gate to it. SpaceRepository repository = new SpaceRepository(); repository.AddGate("tcp://" + args[1] + ":31415?KEEP"); repository.AddGate("tcp://" + args[1] + ":31416?KEEP"); repository.AddGate("tcp://" + args[1] + ":31417?KEEP"); repository.AddGate("tcp://" + args[1] + ":31418?KEEP"); repository.AddGate("tcp://" + args[1] + ":31419?KEEP"); // Add a new Fifo based space to the repository. repository.AddSpace("DiningTable", new SequentialSpace()); // Insert the forks that the philosophers must share. repository.Put("DiningTable", "FORK", 1); repository.Put("DiningTable", "FORK", 2); repository.Put("DiningTable", "FORK", 3); repository.Put("DiningTable", "FORK", 4); repository.Put("DiningTable", "FORK", 5); return; } else if (args[0] == "philosopher") { Console.WriteLine("connecting " + args[1]); // Instantiate a new remote space, thereby allowing a persistant networked connection to the repository. ISpace remotespace1 = new RemoteSpace("tcp://" + args[1] + ":31415/DiningTable?KEEP"); ISpace remotespace2 = new RemoteSpace("tcp://" + args[1] + ":31416/DiningTable?KEEP"); ISpace remotespace3 = new RemoteSpace("tcp://" + args[1] + ":31417/DiningTable?KEEP"); ISpace remotespace4 = new RemoteSpace("tcp://" + args[1] + ":31418/DiningTable?KEEP"); ISpace remotespace5 = new RemoteSpace("tcp://" + args[1] + ":31419/DiningTable?KEEP"); // Instantiate the philosopher agents and let them use the same connection to access the repository. List <AgentBase> agents = new List <AgentBase>(); agents.Add(new Philosopher("Alice", 1, 5, remotespace1)); agents.Add(new Philosopher("Charlie", 2, 5, remotespace2)); agents.Add(new Philosopher("Bob", 3, 5, remotespace3)); agents.Add(new Philosopher("Dave", 4, 5, remotespace4)); agents.Add(new Philosopher("Homer", 5, 5, remotespace5)); // Let the philosophers eat. agents.ForEach(a => a.Start()); Console.Read(); return; } } Console.WriteLine("Please specify [table|philosopher] and IP address to use"); Console.Read(); }
static void Main(string[] args) { try { ISpaceRepository spaceRepository = new SpaceRepository(); DateTime beginAsync = DateTime.Now; Task <IEnumerable <Launch> >[] tasks = new Task <IEnumerable <Launch> > [4]; tasks[0] = spaceRepository.GetNextLaunch(); tasks[1] = spaceRepository.GetLastLaunch(); tasks[2] = spaceRepository.GetPastLaunches(); tasks[3] = spaceRepository.GetUpcomingLaunches(); Task.WaitAll(tasks); Launch nextLaunch = tasks[0].Result.FirstOrDefault(); Launch lastLaunch = tasks[1].Result.FirstOrDefault(); IEnumerable <Launch> pastLaunches = tasks[2].Result; IEnumerable <Launch> upcomingLaunches = tasks[3].Result; Console.WriteLine("Tempo gasto para realizar as requisições= " + Convert.ToString(DateTime.Now - beginAsync)); Console.WriteLine(""); // Informações dos Lançamentos Console.WriteLine("PRÓXIMO LANÇAMENTO : Número do Vôo = " + nextLaunch.FlightNumber + " Missão = " + nextLaunch.MissionName + " Ano de Lançamento = " + nextLaunch.LaunchYear.ToString() + " Data de Lançamento = " + nextLaunch.LaunchDate); Console.WriteLine(""); Console.WriteLine("ÚLTIMO LANÇAMENTO : Número do Vôo = " + lastLaunch.FlightNumber + " Missão = " + lastLaunch.MissionName + " Ano de Lançamento = " + lastLaunch.LaunchYear.ToString() + " Data de Lançamento = " + lastLaunch.LaunchDate); Console.WriteLine(""); Console.WriteLine("LANÇAMENTOS PASSADOS: "); foreach (var launch in pastLaunches) { Console.WriteLine(" Número do Vôo = " + launch.FlightNumber + " Missão = " + launch.MissionName + " Ano de Lançamento = " + launch.LaunchYear.ToString() + " Data de Lançamento = " + launch.LaunchDate); } Console.WriteLine(""); Console.WriteLine("LANÇAMENTOS FUTUROS: "); foreach (var launch in upcomingLaunches) { Console.WriteLine(" Número do Vôo = " + launch.FlightNumber + " Missão = " + launch.MissionName + " Ano de Lançamento = " + launch.LaunchYear.ToString() + " Data de Lançamento = " + launch.LaunchDate); } } catch (Exception e) { Console.WriteLine("Erro ao recuperar informações dos vôos !"); Console.WriteLine("MENSAGEM DE ERRO: " + e.Message); } Console.Read(); }
static void Main(string[] args) { SpaceRepository repository = new SpaceRepository(); repository.AddGate("tcp://127.0.0.1:123?KEEP"); repository.AddSpace("lifeforms", new SequentialSpace(new EntityFactory())); TerminalInfo.Initialize(80, 24); Game lifeforms = new Game(repository.GetSpace("lifeforms")); lifeforms.Run(); Console.ReadKey(); lifeforms.Stop(); }
public InMemoryFixtures() { Context = new InMemoryContext(); var entityFactory = new InMemoryEntityFactory(); SpaceFactory = entityFactory; PageFactory = entityFactory; SpaceRepository = new SpaceRepository(Context); PageRepository = new PageRepository(Context); SpaceService = new SpaceService(SpaceFactory, SpaceRepository); }
public void CreateSequentialSpaceWithSequentialSpaceNameGeneratorTest() { using (var spaceRepo = new SpaceRepository()) { string uri = "tcp://127.0.0.1:5005"; string testName = NameHashingTool.GenerateUniqueSequentialSpaceName("ThisNameDoesNotActuallyMatter"); ISpace testSpace = new SequentialSpace(); spaceRepo.AddSpace(testName, testSpace); spaceRepo.AddGate(uri + "?CONN"); var testElement = "This string is a test"; testSpace.Put(testElement); testSpace.Get(testElement); Debug.Assert(!testSpace.GetAll().Any()); // putting and getting the element should leave us with an empty space } }
public void CreateRemoteSpaceWithRemoteSpaceNameGeneratorTest() { using (var spaceRepo = new SpaceRepository()) { string uri = "tcp://127.0.0.1:5002"; string testRemoteName = "ThisNameDoesNotActuallyMatter"; string testSeqName = NameHashingTool.GenerateUniqueSequentialSpaceName(testRemoteName); Console.WriteLine(testSeqName); var testSeqSpace = new SequentialSpace(); spaceRepo.AddSpace(testSeqName, testSeqSpace); spaceRepo.AddGate(uri); var remoteHash = NameHashingTool.GenerateUniqueRemoteSpaceUri(uri, testRemoteName); Console.WriteLine(remoteHash); var testRemoteSpace = new RemoteSpace(remoteHash); } }
public Servidor(string ip, string port, SpaceRepository space) { this.ip = ip; this.port = port; this.repository = space; // instanciar space // var threaSpace = new Thread(() => this.StartSpace()); // threaSpace.Start(); // Thread.Sleep(100); this.remotespace = new RemoteSpace($"tcp://{this.ip}:{this.port}/chat?KEEP"); // apagador de mensagens var threaMensagens = new Thread(() => this.apagaMensagens()); threaMensagens.Start(); // apagador de salas var threaSalas = new Thread(() => this.apagaSalas()); threaSalas.Start(); }
private static void ChatTest(string[] args, string uri) { var name = args[0]; var conferenceName = args[1]; var dataSource = new ObservableCollection <string>(); if (name.Equals("host")) { using (var spaceRepo = new SpaceRepository()) { new Chat(name, uri, conferenceName, spaceRepo, dataSource).InitializeChat(); Console.WriteLine("Chat is done."); spaceRepo.Dispose(); } } else { new Chat(name, uri, conferenceName, dataSource).InitializeChat(); } }
static void Main(string[] args) { // Instantiate a new Space repository. SpaceRepository repository = new SpaceRepository(); // Add a gate, such that we can connect to it. repository.AddGate("tcp://127.0.0.1:9876?KEEP"); // Add a new Fifo based space. repository.AddSpace("dtu", new SequentialSpace()); Console.WriteLine("Starting"); repository.Put("dtu", 0); // Instantiate a remotespace (a networked space) thereby connecting to the spacerepository. ISpace remotespace = new RemoteSpace("tcp://127.0.0.1:9876/dtu?KEEP"); // Instantiate a new agent, assign the tuple space and start it. AgentBase userA = new User("A", remotespace); AgentBase userB = new User("B", remotespace); userA.Start(); userB.Start(); }
public Lobby(SpaceRepository repository) { this.repository = repository; }
public SpaceRepositoryTests() { _config = new GitConfigurationFixture(); _rootPath = _config.Configuration.Value.RootPath; _repository = new SpaceRepository(_config.Configuration); }
/// <summary> /// Returns the root directory of current logged user /// </summary> /// <param name="userId">current logged user Id</param> /// <returns>Root directory folder - Field</returns> public Field GetRootField(Guid userId) { return(SpaceRepository.Get(n => n.Owner.Id == userId) .FirstOrDefault() .Directory); }
public LobbyController(SpaceRepository repository) { this.repository = repository; }
static void Main(string[] args) { if (args.Length < 2) { Console.WriteLine("Error: Wrong number of parameters"); Console.WriteLine("Expected: [calc|imp1|imp2|click] [IP address] ([impressions] [clicked] [out])"); } var address = args[1]; if (args[0] == "calc") { if (args.Length < 5) { Console.WriteLine("Error: Wrong number of parameters"); Console.WriteLine(args[0]); Console.WriteLine("Expected for calculator: [calc] [IP address] [impressions] [clicked] [out]"); return; } var impressionFileName = args[2]; var clickFileName = args[3]; var outFileName = args[4]; // Instantiate a new Space repository. SpaceRepository repository = new SpaceRepository(); // Add a gate, such that we can connect to it. repository.AddGate("tcp://" + address + ":" + IMP_PORT1 + "?KEEP"); repository.AddGate("tcp://" + address + ":" + IMP_PORT2 + "?KEEP"); repository.AddGate("tcp://" + address + ":" + CLICK_PORT + "?KEEP"); repository.AddGate("tcp://" + address + ":" + CALC_PORT + "?KEEP"); // Add a new tree space. repository.AddSpace("tSpace", new TreeSpace()); // Instantiate a remotespace (a networked space) thereby connecting to the spacerepository. ISpace remoteSpace = new RemoteSpace("tcp://" + address + ":" + CALC_PORT + "/tSpace?KEEP"); var clickRateCalculator = new ClickRateCalculator(remoteSpace, clickFileName, impressionFileName, outFileName); clickRateCalculator.Start(); } else if (args[0] == "imp1") { ISpace remoteSpace = new RemoteSpace("tcp://" + address + ":" + IMP_PORT1 + "/tSpace?KEEP"); var impressionLogAgent = new ImpressionEntryParser("1", remoteSpace, Program.IMP_FILE); impressionLogAgent.Start(); } else if (args[0] == "imp2") { ISpace remoteSpace = new RemoteSpace("tcp://" + address + ":" + IMP_PORT2 + "/tSpace?KEEP"); var impressionLogAgent = new ImpressionEntryParser("2", remoteSpace, Program.IMP_FILE); impressionLogAgent.Start(); } else if (args[0] == "click") { ISpace remoteSpace = new RemoteSpace("tcp://" + address + ":" + CLICK_PORT + "/tSpace?KEEP"); var clickLogAgent = new ClickEntryParser("click", remoteSpace, Program.CLICK_FILE); clickLogAgent.Start(); } else { Console.WriteLine("Please specify [calc|imp1|imp2|click]"); } }
public ConferenceInitializer(string username, string conferenceName, ObservableCollection <string> dataSource, SpaceRepository spaceRepo, ISlideShow slideShower) //For the host { //for host _name = username; var hostentry = ProjectUtilities.IpFetcher.GetLocalIpAdress(); var uri = $"tcp://{hostentry}:5002"; spaceRepo.AddGate(uri + "?CONN"); Chat = new Chat(username, uri, conferenceName, spaceRepo, dataSource); Host = new SlideHostFacade(spaceRepo, username, slideShower); Host.Control.Controlling = true; _tokenSource = new CancellationTokenSource(); Task.Factory.StartNew(InitChat); }
public MainPage() { spaceRepository = new SpaceRepository(); InitializeComponent(); initListView(); }
public OctopusRepository(IOctopusClient client, RepositoryScope repositoryScope = null) { #if FULL_FRAMEWORK LocationChecker.CheckAssemblyLocation(); #endif Client = client; Scope = repositoryScope ?? RepositoryScope.Unspecified(); Accounts = new AccountRepository(this); ActionTemplates = new ActionTemplateRepository(this); Artifacts = new ArtifactRepository(this); Backups = new BackupRepository(this); BuiltInPackageRepository = new BuiltInPackageRepositoryRepository(this); BuildInformationRepository = new BuildInformationRepository(this); CertificateConfiguration = new CertificateConfigurationRepository(this); Certificates = new CertificateRepository(this); Channels = new ChannelRepository(this); CommunityActionTemplates = new CommunityActionTemplateRepository(this); Configuration = new ConfigurationRepository(this); DashboardConfigurations = new DashboardConfigurationRepository(this); Dashboards = new DashboardRepository(this); Defects = new DefectsRepository(this); DeploymentProcesses = new DeploymentProcessRepository(this); DeploymentSettings = new DeploymentSettingsRepository(this); Deployments = new DeploymentRepository(this); Environments = new EnvironmentRepository(this); Events = new EventRepository(this); FeaturesConfiguration = new FeaturesConfigurationRepository(this); Feeds = new FeedRepository(this); Interruptions = new InterruptionRepository(this); LibraryVariableSets = new LibraryVariableSetRepository(this); Lifecycles = new LifecyclesRepository(this); Licenses = new LicensesRepository(this); MachinePolicies = new MachinePolicyRepository(this); MachineRoles = new MachineRoleRepository(this); Machines = new MachineRepository(this); Migrations = new MigrationRepository(this); OctopusServerNodes = new OctopusServerNodeRepository(this); PerformanceConfiguration = new PerformanceConfigurationRepository(this); ProjectGroups = new ProjectGroupRepository(this); Projects = new ProjectRepository(this); Runbooks = new RunbookRepository(this); RunbookProcesses = new RunbookProcessRepository(this); RunbookSnapshots = new RunbookSnapshotRepository(this); RunbookRuns = new RunbookRunRepository(this); ProjectTriggers = new ProjectTriggerRepository(this); Proxies = new ProxyRepository(this); Releases = new ReleaseRepository(this); RetentionPolicies = new RetentionPolicyRepository(this); Schedulers = new SchedulerRepository(this); ServerStatus = new ServerStatusRepository(this); Spaces = new SpaceRepository(this); Subscriptions = new SubscriptionRepository(this); TagSets = new TagSetRepository(this); Tasks = new TaskRepository(this); Teams = new TeamsRepository(this); TelemetryConfigurationRepository = new TelemetryConfigurationRepository(this); Tenants = new TenantRepository(this); TenantVariables = new TenantVariablesRepository(this); UserRoles = new UserRolesRepository(this); Users = new UserRepository(this); VariableSets = new VariableSetRepository(this); Workers = new WorkerRepository(this); WorkerPools = new WorkerPoolRepository(this); ScopedUserRoles = new ScopedUserRoleRepository(this); UserPermissions = new UserPermissionsRepository(this); UserTeams = new UserTeamsRepository(this); UserInvites = new UserInvitesRepository(this); UpgradeConfiguration = new UpgradeConfigurationRepository(this); loadRootResource = new Lazy <RootResource>(LoadRootDocumentInner, true); loadSpaceRootResource = new Lazy <SpaceRootResource>(LoadSpaceRootDocumentInner, true); }