コード例 #1
0
 /// <summary>
 /// Get entity from workflows by key
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='workflowid'>
 /// key: workflowid of workflow
 /// </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 <MicrosoftDynamicsCRMworkflow> GetByKeyAsync(this IWorkflows operations, string workflowid, IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetByKeyWithHttpMessagesAsync(workflowid, select, expand, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// Add new entity to workflows
 /// </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 <MicrosoftDynamicsCRMworkflow> CreateAsync(this IWorkflows operations, MicrosoftDynamicsCRMworkflow body, string prefer = "return=representation", CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateWithHttpMessagesAsync(body, prefer, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #3
0
ファイル: Proxy.cs プロジェクト: adamfoneil/AxosoftAPI
        public Proxy()
        {
            // Set base request
            baseRequest = new BaseRequest(this);

            // API Version 4
            Version = VersionEnum.Version6;

            // Initiate all Axosoft API proxy properties
            Attachments   = new Attachments(this);
            Comments      = new Comments(this);
            Contacts      = new Contacts(this);
            Customers     = new Customers(this);
            Emails        = new Emails(this);
            CustomFields  = new CustomFields(this);
            Filters       = new Filters(this);
            Defects       = new Defects(this);
            Features      = new Features(this);
            Tasks         = new Tasks(this);
            Incidents     = new Incidents(this);
            ItemRelations = new ItemRelations(this);
            Me            = new Me(this);
            Picklists     = new Picklists(this);
            Projects      = new Projects(this);
            Releases      = new Releases(this);
            SecurityRoles = new SecurityRoles(this);
            Teams         = new Teams(this);
            Users         = new Users(this);
            WorkLogs      = new WorkLogs(this);
            WorkflowSteps = new WorkflowSteps(this);
            Workflows     = new Workflows(this);
        }
コード例 #4
0
 /// <summary>
 /// Get entities from workflows
 /// </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 <MicrosoftDynamicsCRMworkflowCollection> GetAsync(this IWorkflows 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);
     }
 }
コード例 #5
0
        public void Setup()
        {
            client = new Mock <IProxy>();

            request          = new Mock <BaseRequest>(new Mock <IProxy>().Object);
            request.CallBase = true;

            // Create proxy instance
            workflowsProxy = new AxosoftAPI.NET.Workflows(client.Object);
            workflowsProxy = new AxosoftAPI.NET.Workflows(request.Object);
        }
コード例 #6
0
 /// <summary>
 /// Get entities from workflows
 /// </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 MicrosoftDynamicsCRMworkflowCollection Get(this IWorkflows 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());
 }
コード例 #7
0
 /// <summary>
 /// Get entity from workflows by key
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='workflowid'>
 /// key: workflowid of workflow
 /// </param>
 /// <param name='select'>
 /// Select properties to be returned
 /// </param>
 /// <param name='expand'>
 /// Expand related entities
 /// </param>
 /// <param name='customHeaders'>
 /// Headers that will be added to request.
 /// </param>
 public static HttpOperationResponse <MicrosoftDynamicsCRMworkflow> GetByKeyWithHttpMessages(this IWorkflows operations, string workflowid, IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>), Dictionary <string, List <string> > customHeaders = null)
 {
     return(operations.GetByKeyWithHttpMessagesAsync(workflowid, select, expand, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult());
 }
コード例 #8
0
 /// <summary>
 /// Delete entity from workflows
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='workflowid'>
 /// key: workflowid of workflow
 /// </param>
 /// <param name='ifMatch'>
 /// ETag
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IWorkflows operations, string workflowid, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(workflowid, ifMatch, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
コード例 #9
0
 /// <summary>
 /// Delete entity from workflows
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='workflowid'>
 /// key: workflowid of workflow
 /// </param>
 /// <param name='ifMatch'>
 /// ETag
 /// </param>
 /// <param name='customHeaders'>
 /// Headers that will be added to request.
 /// </param>
 public static HttpOperationResponse DeleteWithHttpMessages(this IWorkflows operations, string workflowid, string ifMatch = default(string), Dictionary <string, List <string> > customHeaders = null)
 {
     return(operations.DeleteWithHttpMessagesAsync(workflowid, ifMatch, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult());
 }
コード例 #10
0
 /// <summary>
 /// Update entity in workflows
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='workflowid'>
 /// key: workflowid of workflow
 /// </param>
 /// <param name='body'>
 /// New property values
 /// </param>
 /// <param name='customHeaders'>
 /// Headers that will be added to request.
 /// </param>
 public static HttpOperationResponse UpdateWithHttpMessages(this IWorkflows operations, string workflowid, MicrosoftDynamicsCRMworkflow body, Dictionary <string, List <string> > customHeaders = null)
 {
     return(operations.UpdateWithHttpMessagesAsync(workflowid, body, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult());
 }
コード例 #11
0
 /// <summary>
 /// Delete entity from workflows
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='workflowid'>
 /// key: workflowid of workflow
 /// </param>
 /// <param name='ifMatch'>
 /// ETag
 /// </param>
 public static void Delete(this IWorkflows operations, string workflowid, string ifMatch = default(string))
 {
     operations.DeleteAsync(workflowid, ifMatch).GetAwaiter().GetResult();
 }
コード例 #12
0
 /// <summary>
 /// Update entity in workflows
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='workflowid'>
 /// key: workflowid of workflow
 /// </param>
 /// <param name='body'>
 /// New property values
 /// </param>
 public static void Update(this IWorkflows operations, string workflowid, MicrosoftDynamicsCRMworkflow body)
 {
     operations.UpdateAsync(workflowid, body).GetAwaiter().GetResult();
 }
コード例 #13
0
 /// <summary>
 /// Update entity in workflows
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='workflowid'>
 /// key: workflowid of workflow
 /// </param>
 /// <param name='body'>
 /// New property values
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task UpdateAsync(this IWorkflows operations, string workflowid, MicrosoftDynamicsCRMworkflow body, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.UpdateWithHttpMessagesAsync(workflowid, body, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
コード例 #14
0
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     Accounts = new Accounts(this);
     Adoxiolicencetypeadoxioinvestigationset = new Adoxiolicencetypeadoxioinvestigationset(this);
     Aliases                               = new Aliases(this);
     Annualvolumes                         = new Annualvolumes(this);
     Applicationbpfv3s                     = new Applicationbpfv3s(this);
     Applicationcrsbpfv4s                  = new Applicationcrsbpfv4s(this);
     Applicationinvoicehistories           = new Applicationinvoicehistories(this);
     Applicationlicenseechangesv10s        = new Applicationlicenseechangesv10s(this);
     Applicationliquorbpfv2s               = new Applicationliquorbpfv2s(this);
     Applicationrelocationv1s              = new Applicationrelocationv1s(this);
     Applications                          = new Applications(this);
     Applicationstructurechangev1s         = new Applicationstructurechangev1s(this);
     Applicationtermsconditionslimitations = new Applicationtermsconditionslimitations(this);
     Applicationtransferownershipv1s       = new Applicationtransferownershipv1s(this);
     Applicationtypecontents               = new Applicationtypecontents(this);
     Applicationtypefeeschedules           = new Applicationtypefeeschedules(this);
     Applicationtypes                      = new Applicationtypes(this);
     Applicenseechangebpfv2s               = new Applicenseechangebpfv2s(this);
     Areas                              = new Areas(this);
     Auditlogrequests                   = new Auditlogrequests(this);
     Businessaccounts                   = new Businessaccounts(this);
     Cannabisinventoryreports           = new Cannabisinventoryreports(this);
     Cannabismonthlyreports             = new Cannabismonthlyreports(this);
     Cannabisproductadmins              = new Cannabisproductadmins(this);
     Citydistricts                      = new Citydistricts(this);
     Complaints                         = new Complaints(this);
     Complianceinvestigations           = new Complianceinvestigations(this);
     Compliancemeetings                 = new Compliancemeetings(this);
     Contraventionadmins                = new Contraventionadmins(this);
     Contraventions                     = new Contraventions(this);
     Corporatehistorysummaries          = new Corporatehistorysummaries(this);
     Corporateroles                     = new Corporateroles(this);
     Customautonumberdefinitions        = new Customautonumberdefinitions(this);
     Customautonumberrequests           = new Customautonumberrequests(this);
     Documentadmins                     = new Documentadmins(this);
     Documents                          = new Documents(this);
     Endorsements                       = new Endorsements(this);
     Enforcementactionbpfs              = new Enforcementactionbpfs(this);
     Enforcementactions                 = new Enforcementactions(this);
     Establishmentincidents             = new Establishmentincidents(this);
     Establishments                     = new Establishments(this);
     Establishmentwatchwords            = new Establishmentwatchwords(this);
     Eventaddresses                     = new Eventaddresses(this);
     Events                             = new Events(this);
     Eventschedules                     = new Eventschedules(this);
     Exhibits                           = new Exhibits(this);
     Federalreportexports               = new Federalreportexports(this);
     Fiainvestigationlogs               = new Fiainvestigationlogs(this);
     Formelementuploadfields            = new Formelementuploadfields(this);
     Fundingsources                     = new Fundingsources(this);
     Hoursofservices                    = new Hoursofservices(this);
     Hoursofservicesdefaults            = new Hoursofservicesdefaults(this);
     Incidentadoxiolicencetypeset       = new Incidentadoxiolicencetypeset(this);
     Inspectioninspectorsset            = new Inspectioninspectorsset(this);
     Inspectionformconfigurations       = new Inspectionformconfigurations(this);
     Inspectionreactivationhistories    = new Inspectionreactivationhistories(this);
     Inspectorcommentsrollups           = new Inspectorcommentsrollups(this);
     Inspectorreports                   = new Inspectorreports(this);
     Interests                          = new Interests(this);
     Investigationactivities            = new Investigationactivities(this);
     Investigationreactivationhistories = new Investigationreactivationhistories(this);
     Investigations                     = new Investigations(this);
     Ldborders                          = new Ldborders(this);
     Leconnections                      = new Leconnections(this);
     Legalentities                      = new Legalentities(this);
     Licenceldbordertotalhistories      = new Licenceldbordertotalhistories(this);
     Licenceses                         = new Licenceses(this);
     Licencesubcategories               = new Licencesubcategories(this);
     Licencetypes                       = new Licencetypes(this);
     Licencetypesapplicationtypesset    = new Licencetypesapplicationtypesset(this);
     Licenseechangelogs                 = new Licenseechangelogs(this);
     Loans                              = new Loans(this);
     Localgovindigenousnations          = new Localgovindigenousnations(this);
     Lqrlicencetransferbpfs             = new Lqrlicencetransferbpfs(this);
     Offsitestorages                    = new Offsitestorages(this);
     Personalhistorysummaries           = new Personalhistorysummaries(this);
     Pmuareas                           = new Pmuareas(this);
     Policejurisdictions                = new Policejurisdictions(this);
     Policydocuments                    = new Policydocuments(this);
     Postalcodes                        = new Postalcodes(this);
     Previousaddresses                  = new Previousaddresses(this);
     Proratedlicencefeeschedules        = new Proratedlicencefeeschedules(this);
     Regions                            = new Regions(this);
     Relatedparties                     = new Relatedparties(this);
     Rmreviews                          = new Rmreviews(this);
     Serviceareas                       = new Serviceareas(this);
     Settings                           = new Settings(this);
     Spddatarows                        = new Spddatarows(this);
     Spdexportses                       = new Spdexportses(this);
     Specialeventlicencedareas          = new Specialeventlicencedareas(this);
     Specialeventlocations              = new Specialeventlocations(this);
     Specialeventnotes                  = new Specialeventnotes(this);
     Specialevents                      = new Specialevents(this);
     Specialeventschedules              = new Specialeventschedules(this);
     Specialeventtandcs                 = new Specialeventtandcs(this);
     Taxandaccountings                  = new Taxandaccountings(this);
     Termsconditionslimitationspresets  = new Termsconditionslimitationspresets(this);
     Territories                        = new Territories(this);
     Tiedhouseassociations              = new Tiedhouseassociations(this);
     Tiedhouseconnections               = new Tiedhouseconnections(this);
     Witnesses                          = new Witnesses(this);
     Workerinvoicehistories             = new Workerinvoicehistories(this);
     Workers                            = new Workers(this);
     Contacts                           = new Contacts(this);
     Entitydefinitions                  = new Entitydefinitions(this);
     Globaloptionsetdefinitions         = new Globaloptionsetdefinitions(this);
     Invoices                           = new Invoices(this);
     Leads                              = new Leads(this);
     Lists                              = new Lists(this);
     Savedqueries                       = new Savedqueries(this);
     Sharepointdocumentlocations        = new Sharepointdocumentlocations(this);
     Sharepointsites                    = new Sharepointsites(this);
     Systemforms                        = new Systemforms(this);
     Systemusers                        = new Systemusers(this);
     Workflows                          = new Workflows(this);
     BaseUri                            = new System.Uri("http://localhost");
     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();
 }
コード例 #15
0
 /// <summary>
 /// Get entities from workflows
 /// </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='customHeaders'>
 /// Headers that will be added to request.
 /// </param>
 public static HttpOperationResponse <MicrosoftDynamicsCRMworkflowCollection> GetWithHttpMessages(this IWorkflows 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>), Dictionary <string, List <string> > customHeaders = null)
 {
     return(operations.GetWithHttpMessagesAsync(top, skip, search, filter, count, orderby, select, expand, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult());
 }
コード例 #16
0
 /// <summary>
 /// Get entity from workflows by key
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='workflowid'>
 /// key: workflowid of workflow
 /// </param>
 /// <param name='select'>
 /// Select properties to be returned
 /// </param>
 /// <param name='expand'>
 /// Expand related entities
 /// </param>
 public static MicrosoftDynamicsCRMworkflow GetByKey(this IWorkflows operations, string workflowid, IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>))
 {
     return(operations.GetByKeyAsync(workflowid, select, expand).GetAwaiter().GetResult());
 }
コード例 #17
0
 /// <summary>
 /// Add new entity to workflows
 /// </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='customHeaders'>
 /// Headers that will be added to request.
 /// </param>
 public static HttpOperationResponse <MicrosoftDynamicsCRMworkflow> CreateWithHttpMessages(this IWorkflows operations, MicrosoftDynamicsCRMworkflow body, string prefer = "return=representation", Dictionary <string, List <string> > customHeaders = null)
 {
     return(operations.CreateWithHttpMessagesAsync(body, prefer, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult());
 }
コード例 #18
0
 /// <summary>
 /// Add new entity to workflows
 /// </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>
 public static MicrosoftDynamicsCRMworkflow Create(this IWorkflows operations, MicrosoftDynamicsCRMworkflow body, string prefer = "return=representation")
 {
     return(operations.CreateAsync(body, prefer).GetAwaiter().GetResult());
 }