Beispiel #1
0
 public LicensesService(YoukerContext context, LicensesRepository licensesRepository) : base(context)
 {
     if (_licensesRepository == null)
     {
         _licensesRepository = licensesRepository;
     }
 }
        public OctopusAsyncRepository(IOctopusAsyncClient 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);
            GitCredentials                   = new GitCredentialRepository(this);
            Interruptions                    = new InterruptionRepository(this);
            LibraryVariableSets              = new LibraryVariableSetRepository(this);
            Licenses                         = new LicensesRepository(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);
            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);
            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);
            UserTeams                        = new UserTeamsRepository(this);
            UpgradeConfiguration             = new UpgradeConfigurationRepository(this);
            loadRootResource                 = new Lazy <Task <RootResource> >(LoadRootDocumentInner, true);
            loadSpaceRootResource            = new Lazy <Task <SpaceRootResource> >(LoadSpaceRootDocumentInner, true);
        }
 public OctopusRepository(IOctopusClient 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);
     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);
     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);
     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);
 }