コード例 #1
0
 public ICommand <ApiResponseWithMessage> CreateSetMembership(GroupFirewallObject groupFirewallObject) =>
 new Command <ApiResponseWithMessage>(
     apiUriFactory.Create(),
     apiPostKeyValuePairFactory.CreateSetMembership(groupFirewallObject));
コード例 #2
0
 public ICommand <ApiEnqueuedResponse> CreateRequestForTrafficLog(string query, uint nlogs, uint skip)
 {
     return(new Command <ApiEnqueuedResponse>(
                apiUriFactory.Create(),
                logApiPostKeyValuePairFactory.CreateRequestForTrafficLog(query, nlogs, skip)));
 }
コード例 #3
0
 public ICommand <TApiResponse> CreateGetAll <TApiResponse>(
     string schemaName,
     ConfigTypes configType = ConfigTypes.Running) where TApiResponse : ApiResponse =>
 new Command <TApiResponse>(apiUriFactory.Create(), apiPostKeyValuePairFactory.CreateGetAll(schemaName, configType));
コード例 #4
0
 public ICommand <ApiEnqueuedJobRequestStatusResponse> CreateGetJobStatus(uint jobId)
 {
     return(new Command <ApiEnqueuedJobRequestStatusResponse>(apiUriFactory.Create(), jobApiPostKeyValuePairFactory.CreateGetJobStatus(jobId)));
 }
 public ICommand <ApiEnqueuedResponse> CreateCommit(bool force) =>
 new Command <ApiEnqueuedResponse>(apiUriFactory.Create(), apiPostKeyValuePairFactory.CreateCommit(true));