コード例 #1
0
        public static int Main(string[] args)
        {
            var verbMap = new VerbMap <object>();

            verbMap
            .Add((ListTenantsOptions opts) => ListTenantsSample.ListTenants(
                     opts.ProjectId))
            .Add((CreateCompanyOptions opts) => CreateCompanySample.CreateCompany(opts.ProjectId, opts.TenantId,
                                                                                  opts.DisplayName, opts.CompanyExternalId))
            .Add((GetCommpanyOptions opts) => GetCompanySample.GetCompany(opts.ProjectId, opts.TenantId, opts.CompanyId))
            .Add((ListCompaniesOptions opts) => ListCompaniesSample.ListCompanies(opts.ProjectId, opts.TenantId))
            .Add((CreateTenantOptions opts) => CreateTenantSample.CreateTenant(opts.ProjectId, opts.TenantExternalId))
            .Add((GetTenantOptions opts) => GetTenantSample.GetTenant(opts.ProjectId, opts.TenantId))
            .Add((DeleteTenantOptions opts) => DeleteTenantSample.DeleteTenant(opts.ProjectId, opts.TenantId))
            .Add((DeleteCompanyOptions opts) => DeleteCompanySample.DeleteCompany(opts.ProjectId, opts.TenantId, opts.CompanyId))
            .Add((CreateJobOptions opts) => CreateJobSample.CreateJob(opts.ProjectId, opts.TenantId, opts.CompanyId, opts.RequisitionId, opts.JobApplicationUrl))
            .Add((ListJobsOptions opts) => ListJobsSample.ListJobs(opts.ProjectId, opts.TenantId, opts.Filter))
            .Add((GetJobOptions opts) => GetJobSample.GetJob(opts.ProjectId, opts.TenantId, opts.JobId))
            .Add((DeleteJobOptions opts) => DeleteJobSample.DeleteJob(opts.ProjectId, opts.TenantId, opts.JobId))
            .Add((CreateClientEventOptions opts) => CreateClientEventSample.CreateClientEvent(opts.ProjectId, opts.TenantId, opts.RequestId, opts.EventId, opts.JobIDs))
            .Add((CreateJobCustomAttributesOptions opts) => CreateJobCustomAttributesSample.CreateJobCustomAttributes(opts.ProjectId, opts.TenantId, opts.CompanyId, opts.RequisitionId))
            .Add((CustomRankingSearchOptions opts) => CustomRankingSearchSample.CustomRankingSearch(opts.ProjectId, opts.TenantId))
            .Add((CommuteSearchJobsOptions opts) => CommuteSearchJobsSample.CommuteSearchJobs(opts.ProjectId, opts.TenantId))
            .Add((HistogramSearchJobsOptions opts) => HistogramSearch.HistogramSearchJobs(opts.ProjectId, opts.TenantId, opts.Query))
            .Add((AutoCompleteJobTitleOptions opts) => AutoCompleteJobTitleSample.CompleteQuery(opts.ProjectId, opts.TenantId, opts.Query))
            .NotParsedFunc = (err) => 1;
            return((int)verbMap.Run(args));
        }
コード例 #2
0
        public static int Main(string[] args)
        {
            var verbMap = new VerbMap <object>();

            verbMap
            .Add((ListTenantsOptions opts) => ListTenantsSample.ListTenants(
                     opts.ProjectId))
            .Add((CreateCompanyOptions opts) => CreateCompanySample.CreateCompany(opts.ProjectId, opts.TenantId,
                                                                                  opts.DisplayName, opts.CompanyExternalId))
            .Add((GetCommpanyOptions opts) => GetCompanySample.GetCompany(opts.ProjectId, opts.TenantId, opts.CompanyId))
            .Add((ListCompaniesOptions opts) => ListCompaniesSample.ListCompanies(opts.ProjectId, opts.TenantId))
            .Add((CreateTenantOptions opts) => CreateTenantSample.CreateTenant(opts.ProjectId, opts.TenantExternalId))
            .Add((GetTenantOptions opts) => GetTenantSample.GetTenant(opts.ProjectId, opts.TenantId))
            .Add((DeleteTenantOptions opts) => DeleteTenantSample.DeleteTenant(opts.ProjectId, opts.TenantId))
            .Add((DeleteCompanyOptions opts) => DeleteCompanySample.DeleteCompany(opts.ProjectId, opts.TenantId, opts.CompanyId))
            .NotParsedFunc = (err) => 1;
            return((int)verbMap.Run(args));
        }