/// <summary>
 /// Get process parameters
 /// </summary>
 /// <remarks>
 /// Required permissions: Packages.View.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='key'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ArgumentMetadata> GetArgumentsByKeyAsync(this IProcesses operations, string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.GetArgumentsByKeyWithHttpMessagesAsync(key, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets the processes.
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Execution or Execution.Read.
 ///
 /// Required permissions: (Packages.View - Lists packages in a Tenant Feed) and
 /// (FolderPackages.View - Lists packages in a Folder Feed).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='searchTerm'>
 /// </param>
 /// <param name='feedId'>
 /// </param>
 /// <param name='expand'>
 /// Indicates the related entities to be represented inline. The maximum depth
 /// is 2.
 /// </param>
 /// <param name='filter'>
 /// Restricts the set of items returned. The maximum number of expressions is
 /// 100.
 /// </param>
 /// <param name='select'>
 /// Limits the properties returned in the result.
 /// </param>
 /// <param name='orderby'>
 /// Specifies the order in which items are returned. The maximum number of
 /// expressions is 5.
 /// </param>
 /// <param name='top'>
 /// Limits the number of items returned from a collection. The maximum value is
 /// 1000.
 /// </param>
 /// <param name='skip'>
 /// Excludes the specified number of items of the queried collection from the
 /// result.
 /// </param>
 /// <param name='count'>
 /// Indicates whether the total count of items within a collection are returned
 /// in the result.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ODataValueOfIEnumerableOfProcessDto> GetAsync(this IProcesses operations, string searchTerm = "", System.Guid?feedId = default(System.Guid?), string expand = default(string), string filter = default(string), string select = default(string), string orderby = default(string), int?top = default(int?), int?skip = default(int?), bool?count = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(searchTerm, feedId, expand, filter, select, orderby, top, skip, count, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Get process parameters
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Execution or Execution.Read.
 ///
 /// Required permissions: Packages.View.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='key'>
 /// </param>
 /// <param name='expand'>
 /// Indicates the related entities to be represented inline. The maximum depth
 /// is 2.
 /// </param>
 /// <param name='select'>
 /// Limits the properties returned in the result.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ArgumentMetadata> GetArgumentsByKeyAsync(this IProcesses operations, string key, string expand = default(string), string select = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetArgumentsByKeyWithHttpMessagesAsync(key, expand, select, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
        /// <summary>
        /// Downloads the .nupkg file of a Package.
        /// </summary>
        /// <remarks>
        /// Required permissions: Packages.View.
        /// </remarks>
        /// <param name='operations'>
        /// The operations group for this extension method.
        /// </param>
        /// <param name='key'>
        /// </param>
        /// <param name='cancellationToken'>
        /// The cancellation token.
        /// </param>
        public static async Task <Stream> DownloadPackageByKeyAsync(this IProcesses operations, string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            var _result = await operations.DownloadPackageByKeyWithHttpMessagesAsync(key, null, cancellationToken).ConfigureAwait(false);

            _result.Request.Dispose();
            return(_result.Body);
        }
Exemple #5
0
 /// <summary>
 /// Get entities from spice_spiceprocesses
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='top'>
 /// </param>
 /// <param name='skip'>
 /// </param>
 /// <param name='search'>
 /// </param>
 /// <param name='filter'>
 /// </param>
 /// <param name='count'>
 /// </param>
 /// <param name='orderby'>
 /// Order items by property values
 /// </param>
 /// <param name='select'>
 /// Select properties to be returned
 /// </param>
 /// <param name='expand'>
 /// Expand related entities
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ProcessesGetResponseModel> GetAsync(this IProcesses operations, int?top = default(int?), int?skip = default(int?), string search = default(string), string filter = default(string), bool?count = default(bool?), IList <string> orderby = default(IList <string>), IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(top, skip, search, filter, count, orderby, select, expand, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #6
0
 /// <summary>
 /// Add new entity to spice_spiceprocesses
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// New entity
 /// </param>
 /// <param name='prefer'>
 /// Required in order for the service to return a JSON representation of the
 /// object.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <MicrosoftDynamicsCRMspiceSpiceprocess> CreateAsync(this IProcesses operations, MicrosoftDynamicsCRMspiceSpiceprocess body, string prefer = "return=representation", CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateWithHttpMessagesAsync(body, prefer, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets the processes.
 /// </summary>
 /// <remarks>
 /// Required permissions: Packages.View.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='expand'>
 /// Expands related entities inline.
 /// </param>
 /// <param name='filter'>
 /// Filters the results, based on a Boolean condition.
 /// </param>
 /// <param name='select'>
 /// Selects which properties to include in the response.
 /// </param>
 /// <param name='orderby'>
 /// Sorts the results.
 /// </param>
 /// <param name='top'>
 /// Returns only the first n results.
 /// </param>
 /// <param name='skip'>
 /// Skips the first n results.
 /// </param>
 /// <param name='count'>
 /// Includes a count of the matching results in the response.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ODataResponseListProcessDto> GetProcessesAsync(this IProcesses operations, string expand = default(string), string filter = default(string), string select = default(string), string orderby = default(string), int?top = default(int?), int?skip = default(int?), bool?count = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.GetProcessesWithHttpMessagesAsync(expand, filter, select, orderby, top, skip, count, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 public OpenPasswordShellAction(GpgInstallation installation, PasswordStoreConfig passwordStore, IGpgHomedirResolver homedirResolver, IFileSystem fileSystem, IProcesses processes)
 {
     this.installation    = installation;
     this.passwordStore   = passwordStore;
     this.homedirResolver = homedirResolver;
     this.fileSystem      = fileSystem;
     this.processes       = processes;
 }
        public AddAutoPauseProcessDialogViewModel()
        {
            this.processes        = Ioc.Get <IProcesses>();
            this.currentProcesses = new ObservableCollection <string>();
            this.RefreshCurrentProcessesImpl();

            this.RefreshCurrentProcesses = ReactiveCommand.Create();
            this.RefreshCurrentProcesses.Subscribe(_ => this.RefreshCurrentProcessesImpl());
        }
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     Accounts     = new Accounts(this);
     Contacts     = new Contacts(this);
     Incidents    = new Incidents(this);
     Invoices     = new Invoices(this);
     Savedqueries = new Savedqueries(this);
     Sharepointdocumentlocations = new Sharepointdocumentlocations(this);
     Sharepointsites             = new Sharepointsites(this);
     Accountcaseassignments      = new Accountcaseassignments(this);
     Aliaseses                = new Aliaseses(this);
     Companies                = new Companies(this);
     Contactaccountset        = new Contactaccountset(this);
     Exportrequestincidentset = new Exportrequestincidentset(this);
     Exportrequests           = new Exportrequests(this);
     Govministries            = new Govministries(this);
     Lcrblicencetypes         = new Lcrblicencetypes(this);
     Ministries               = new Ministries(this);
     Ministryemployees        = new Ministryemployees(this);
     Previousaddresseses      = new Previousaddresseses(this);
     Reasonforscreenings      = new Reasonforscreenings(this);
     Requiredcheckses         = new Requiredcheckses(this);
     Serviceses               = new Serviceses(this);
     Businesscaseprocesses    = new Businesscaseprocesses(this);
     Processes                = new Processes(this);
     BaseUri = new System.Uri("https://wsgw.test.jag.gov.bc.ca/spdcss/spd-spice-train/api/data/v9.0");
     SerializationSettings = new JsonSerializerSettings
     {
         Formatting            = Newtonsoft.Json.Formatting.Indented,
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new  List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     DeserializationSettings = new JsonSerializerSettings
     {
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     CustomInitialize();
 }
Exemple #11
0
        public override void Execute(string[] args)
        {
            if (args.Length == 5)
            {
                IProcesses procProxies;
                bool       exists = shell.processes.TryGetValue(args[0], out procProxies);
                if (exists)
                {
                    Console.WriteLine("[StartClient] There is already a process with this id: \"{0}\"", args[0]);
                    return;
                }
                shell.connectPCS(args[1]).createClient(args[0], args[2], masterURL); // string clientIP, int clientPort, string serverURL

                String ip   = args[2].Split('/')[2].Split(':')[0];
                String port = args[2].Split(':')[2].Split('/')[0];
                string url  = $"tcp://{ip}:{port}/Puppet";

                System.Threading.Thread.Sleep(100);

                IProcesses client = (IProcesses)Activator.GetObject(typeof(IProcesses), url);

                shell.processes.Add(args[0], client);
                shell.processesURLs.Add(args[0], args[2]);
            }
            else if (args.Length == 6)  //has filename
            {
                IProcesses procProxies;
                bool       exists = shell.processes.TryGetValue(args[0], out procProxies);
                if (exists)
                {
                    Console.WriteLine("[StartClient] There is already a process with this id: \"{0}\"", args[0]);
                    return;
                }
                shell.connectPCS(args[1]).createClient(args[0], args[2], args[5], masterURL);

                String ip   = args[2].Split('/')[2].Split(':')[0];
                String port = args[2].Split(':')[2].Split('/')[0];
                string url  = $"tcp://{ip}:{port}/Puppet";

                System.Threading.Thread.Sleep(100);

                IProcesses client = (IProcesses)Activator.GetObject(typeof(IProcesses), url);


                shell.processes.Add(args[0], client);
                shell.processesURLs.Add(args[0], args[2]);
            }
            else
            {
                printErrorMsg();
            }
        }
Exemple #12
0
 protected AbstractNode(IOperationTracker operationTracker,
                        IFiles files,
                        IShell shell,
                        IServices services,
                        IProcesses processes,
                        IRegistry registry)
 {
     _operationTracker = operationTracker;
     _files            = files;
     _shell            = shell;
     _services         = services;
     _processes        = processes;
     _registry         = registry;
 }
Exemple #13
0
 public MsTestRunContext(
     MsTestResultsParser parser,
     IProcesses processes,
     CommonServices svc,
     //----------
     string xUnitPath,
     string assemblyPath,
     TestsSelector testsSelector)
 {
     _parser                  = parser;
     _processes               = processes;
     _svc                     = svc;
     _assemblyPath            = assemblyPath;
     _testsSelector           = testsSelector;
     _nUnitConsolePath        = xUnitPath;
     _cancellationTokenSource = new CancellationTokenSource();
 }
        public MsTestRunContext(
            MsTestResultsParser parser,
            IProcesses processes,
            CommonServices svc,
            //----------
            string xUnitPath,
            string assemblyPath,
            TestsSelector testsSelector)
        {
            _parser = parser;
            _processes = processes;
            _svc = svc;
            _assemblyPath = assemblyPath;
            _testsSelector = testsSelector;
            _nUnitConsolePath = xUnitPath;
            _cancellationTokenSource = new CancellationTokenSource();

        }
        public XUnitTestsRunContext(
            XUnitResultsParser parser,
            IProcesses processes,
            CommonServices svc,
            //----------
            string xUnitPath,
            string assemblyPath,
            TestsSelector testsSelector)
        {
            _parser = parser;
            _processes = processes;
            _svc = svc;
            _assemblyPath = assemblyPath;
            _testsSelector = testsSelector;
            _nUnitConsolePath = xUnitPath;// @"C:\PLIKI\DOWNLOAD\xunit-2.0-beta-3\src\xunit.console\bin\Debug\xunit.console.exe";
            _cancellationTokenSource = new CancellationTokenSource();

           // var testsSelector = new TestsSelector();
           // _selectedTests = testsSelector.GetIncludedTests(loadContext.Namespaces);
            //_log.Debug("Created tests to run: " + _selectedTests.TestsDescription);
        }
        public XUnitTestsRunContext(
            XUnitResultsParser parser,
            IProcesses processes,
            CommonServices svc,
            //----------
            string xUnitPath,
            string assemblyPath,
            TestsSelector testsSelector)
        {
            _parser                  = parser;
            _processes               = processes;
            _svc                     = svc;
            _assemblyPath            = assemblyPath;
            _testsSelector           = testsSelector;
            _nUnitConsolePath        = xUnitPath;// @"C:\PLIKI\DOWNLOAD\xunit-2.0-beta-3\src\xunit.console\bin\Debug\xunit.console.exe";
            _cancellationTokenSource = new CancellationTokenSource();

            // var testsSelector = new TestsSelector();
            // _selectedTests = testsSelector.GetIncludedTests(loadContext.Namespaces);
            //_log.Debug("Created tests to run: " + _selectedTests.TestsDescription);
        }
        public NUnitTestsRunContext(
            OptionsModel options,
            IProcesses processes,
            CommonServices svc,
            NUnitResultsParser parser,
            //----------
            string nUnitConsolePath,
            string assemblyPath,
            TestsSelector testsSelector)
        {
            _options                 = options;
            _parser                  = parser;
            _processes               = processes;
            _svc                     = svc;
            _assemblyPath            = assemblyPath;
            _nUnitConsolePath        = nUnitConsolePath;
            _testsSelector           = testsSelector;
            _cancellationTokenSource = new CancellationTokenSource();

            // var testsSelector = new TestsSelector();
            //  _selectedTests = testsSelector.GetIncludedTests(loadContext.Namespaces);
            //  _log.Debug("Created tests to run: " + _selectedTests.TestsDescription);
        }
        public NUnitTestsRunContext(
            OptionsModel options,
            IProcesses processes,
            CommonServices svc, 
            NUnitResultsParser parser,
            //----------
            string nUnitConsolePath,
            string assemblyPath,
            TestsSelector testsSelector)
        {
            _options = options;
            _parser = parser;
            _processes = processes;
            _svc = svc;
            _assemblyPath = assemblyPath;
            _nUnitConsolePath = nUnitConsolePath;
            _testsSelector = testsSelector;
            _cancellationTokenSource = new CancellationTokenSource();

           // var testsSelector = new TestsSelector();
          //  _selectedTests = testsSelector.GetIncludedTests(loadContext.Namespaces);
          //  _log.Debug("Created tests to run: " + _selectedTests.TestsDescription);
        }
Exemple #19
0
        public override void Execute(string[] args)
        {
            if (args.Length == 5)
            {
                IProcesses procProxies;
                bool       exists = shell.processes.TryGetValue(args[0], out procProxies);
                if (exists)
                {
                    Console.WriteLine("[StartServer] There is already a process with this id: \"{0}\"", args[0]);
                    return;
                }

                String ip   = args[2].Split('/')[2].Split(':')[0];
                String port = args[2].Split(':')[2].Split('/')[0];
                string url  = $"tcp://{ip}:{port}/Puppet";

                if (StartClient.masterURL == null)
                {
                    StartClient.masterURL = $"{ip}:{port}";
                }
                shell.connectPCS(args[1]).createServer(args[0], args[2], args[3], args[4]);



                //System.Threading.Thread.Sleep(100);

                IProcesses server = (IProcesses)Activator.GetObject(typeof(IProcesses), url);

                shell.processes.Add(args[0], server);
                shell.processesURLs.Add(args[0], args[2]);
            }
            else
            {
                printErrorMsg();
            }
        }
 /// <summary>
 /// Uploads a new package or a new version of an existing package. The content
 /// of the package is sent as a .nupkg file embedded in the HTTP request.
 /// </summary>
 /// <remarks>
 /// Required permissions: Packages.Create.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='file'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task UploadPackageAsync(this IProcesses operations, Stream file, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     (await operations.UploadPackageWithHttpMessagesAsync(file, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Uploads a new package or a new version of an existing package. The content
 /// of the package is sent as a .nupkg file embedded in the HTTP request.
 /// </summary>
 /// <remarks>
 /// Required permissions: Packages.Create.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='file'>
 /// </param>
 public static void UploadPackage(this IProcesses operations, Stream file)
 {
     operations.UploadPackageAsync(file).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Downloads the .nupkg file of a Package.
 /// </summary>
 /// <remarks>
 /// Required permissions: Packages.View.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='key'>
 /// </param>
 public static Stream DownloadPackageByKey(this IProcesses operations, string key)
 {
     return(operations.DownloadPackageByKeyAsync(key).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Returns a collection of all available versions of a given process. Allows
 /// odata query options.
 /// </summary>
 /// <remarks>
 /// Required permissions: Packages.View.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='processId'>
 /// The Id of the process for which the versions are fetched.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ODataResponseListProcessDto> GetProcessVersionsByProcessidAsync(this IProcesses operations, string processId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.GetProcessVersionsByProcessidWithHttpMessagesAsync(processId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #24
0
 public ProcessAutoPause(IProcesses processes, ILogger logger)
 {
     this.processes = processes;
     this.logger    = logger;
 }
 /// <summary>
 /// Deletes a package.
 /// </summary>
 /// <remarks>
 /// Required permissions: Packages.Delete.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// key: Id
 /// </param>
 /// <param name='ifMatch'>
 /// If-Match header
 /// </param>
 public static void DeleteById(this IProcesses operations, string id, string ifMatch = default(string))
 {
     operations.DeleteByIdAsync(id, ifMatch).GetAwaiter().GetResult();
 }
Exemple #26
0
		public ProcessAutoPause(IProcesses processes, ILogger logger)
		{
			this.processes = processes;
			this.logger = logger;
		}
Exemple #27
0
 /// <summary>
 /// Get entities from spice_spiceprocesses
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='top'>
 /// </param>
 /// <param name='skip'>
 /// </param>
 /// <param name='search'>
 /// </param>
 /// <param name='filter'>
 /// </param>
 /// <param name='count'>
 /// </param>
 /// <param name='orderby'>
 /// Order items by property values
 /// </param>
 /// <param name='select'>
 /// Select properties to be returned
 /// </param>
 /// <param name='expand'>
 /// Expand related entities
 /// </param>
 public static ProcessesGetResponseModel Get(this IProcesses operations, int?top = default(int?), int?skip = default(int?), string search = default(string), string filter = default(string), bool?count = default(bool?), IList <string> orderby = default(IList <string>), IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>))
 {
     return(operations.GetAsync(top, skip, search, filter, count, orderby, select, expand).GetAwaiter().GetResult());
 }
Exemple #28
0
 /// <summary>
 /// Update entity in spice_spiceprocesses
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='businessprocessflowinstanceid'>
 /// key: businessprocessflowinstanceid
 /// </param>
 /// <param name='body'>
 /// New property values
 /// </param>
 /// <param name='customHeaders'>
 /// Headers that will be added to request.
 /// </param>
 public static HttpOperationResponse UpdateWithHttpMessages(this IProcesses operations, string businessprocessflowinstanceid, MicrosoftDynamicsCRMspiceSpiceprocess body, Dictionary <string, List <string> > customHeaders = null)
 {
     return(operations.UpdateWithHttpMessagesAsync(businessprocessflowinstanceid, body, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult());
 }
Exemple #29
0
 /// <summary>
 /// Update entity in spice_spiceprocesses
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='businessprocessflowinstanceid'>
 /// key: businessprocessflowinstanceid
 /// </param>
 /// <param name='body'>
 /// New property values
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task UpdateAsync(this IProcesses operations, string businessprocessflowinstanceid, MicrosoftDynamicsCRMspiceSpiceprocess body, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.UpdateWithHttpMessagesAsync(businessprocessflowinstanceid, body, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Gets the processes.
 /// </summary>
 /// <remarks>
 /// Required permissions: Packages.View.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='expand'>
 /// Expands related entities inline.
 /// </param>
 /// <param name='filter'>
 /// Filters the results, based on a Boolean condition.
 /// </param>
 /// <param name='select'>
 /// Selects which properties to include in the response.
 /// </param>
 /// <param name='orderby'>
 /// Sorts the results.
 /// </param>
 /// <param name='top'>
 /// Returns only the first n results.
 /// </param>
 /// <param name='skip'>
 /// Skips the first n results.
 /// </param>
 /// <param name='count'>
 /// Includes a count of the matching results in the response.
 /// </param>
 public static ODataResponseListProcessDto GetProcesses(this IProcesses operations, string expand = default(string), string filter = default(string), string select = default(string), string orderby = default(string), int?top = default(int?), int?skip = default(int?), bool?count = default(bool?))
 {
     return(operations.GetProcessesAsync(expand, filter, select, orderby, top, skip, count).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Deletes a package.
 /// </summary>
 /// <remarks>
 /// Required permissions: Packages.Delete.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// key: Id
 /// </param>
 /// <param name='ifMatch'>
 /// If-Match header
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteByIdAsync(this IProcesses operations, string id, string ifMatch = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     (await operations.DeleteByIdWithHttpMessagesAsync(id, ifMatch, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
		public AddAutoPauseProcessDialogViewModel()
		{
			this.processes = Ioc.Container.GetInstance<IProcesses>();
			this.currentProcesses = new ObservableCollection<string>();
			this.RefreshCurrentProcesses();
		}
 /// <summary>
 /// Returns a collection of all available versions of a given process. Allows
 /// odata query options.
 /// </summary>
 /// <remarks>
 /// Required permissions: Packages.View.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='processId'>
 /// The Id of the process for which the versions are fetched.
 /// </param>
 public static ODataResponseListProcessDto GetProcessVersionsByProcessid(this IProcesses operations, string processId)
 {
     return(operations.GetProcessVersionsByProcessidAsync(processId).GetAwaiter().GetResult());
 }
Exemple #34
0
 /// <summary>
 /// Update entity in spice_spiceprocesses
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='businessprocessflowinstanceid'>
 /// key: businessprocessflowinstanceid
 /// </param>
 /// <param name='body'>
 /// New property values
 /// </param>
 public static void Update(this IProcesses operations, string businessprocessflowinstanceid, MicrosoftDynamicsCRMspiceSpiceprocess body)
 {
     operations.UpdateAsync(businessprocessflowinstanceid, body).GetAwaiter().GetResult();
 }
Exemple #35
0
 /// <summary>
 /// Delete entity from spice_spiceprocesses
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='businessprocessflowinstanceid'>
 /// key: businessprocessflowinstanceid
 /// </param>
 /// <param name='ifMatch'>
 /// ETag
 /// </param>
 /// <param name='customHeaders'>
 /// Headers that will be added to request.
 /// </param>
 public static HttpOperationResponse DeleteWithHttpMessages(this IProcesses operations, string businessprocessflowinstanceid, string ifMatch = default(string), Dictionary <string, List <string> > customHeaders = null)
 {
     return(operations.DeleteWithHttpMessagesAsync(businessprocessflowinstanceid, ifMatch, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult());
 }