コード例 #1
0
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     Accounts         = new Accounts(this);
     Applicationtypes = new Applicationtypes(this);
     Businesscontacts = new Businesscontacts(this);
     Certificates     = new Certificates(this);
     Certificatetermsandconditionses = new Certificatetermsandconditionses(this);
     Customaddresses            = new Customaddresses(this);
     Customproducts             = new Customproducts(this);
     Equipmentlocations         = new Equipmentlocations(this);
     Equipments                 = new Equipments(this);
     Incidentbusinesscontactset = new Incidentbusinesscontactset(this);
     Locationequipmentset       = new Locationequipmentset(this);
     Locations              = new Locations(this);
     Riskassessments        = new Riskassessments(this);
     Termsconditionspresets = new Termsconditionspresets(this);
     Contacts  = new Contacts(this);
     Incidents = new Incidents(this);
     Invoices  = new Invoices(this);
     Msdyncustomaddressknowledgearticlset = new Msdyncustomaddressknowledgearticlset(this);
     Msdyncustomaddressknowledgebasereset = new Msdyncustomaddressknowledgebasereset(this);
     Sharepointdocumentlocations          = new Sharepointdocumentlocations(this);
     Sharepointsites            = new Sharepointsites(this);
     Entitydefinitions          = new Entitydefinitions(this);
     Globaloptionsetdefinitions = new Globaloptionsetdefinitions(this);
     BaseUri = new System.Uri("https://pillspressdev.api.crm3.dynamics.com/api/data/v8.2");
     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();
 }
コード例 #2
0
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     Accounts = new Accounts(this);
     Actregulationreferences = new Actregulationreferences(this);
     Applicationtypes        = new Applicationtypes(this);
     Areas                                = new Areas(this);
     Businesscontacts                     = new Businesscontacts(this);
     Cecontacts                           = new Cecontacts(this);
     Cecontacttypes                       = new Cecontacttypes(this);
     Certificateapprovedproducts          = new Certificateapprovedproducts(this);
     Certificates                         = new Certificates(this);
     Certificatetermsandconditionses      = new Certificatetermsandconditionses(this);
     Complaintcecontactset                = new Complaintcecontactset(this);
     Complaints                           = new Complaints(this);
     Customaddresses                      = new Customaddresses(this);
     Customproducts                       = new Customproducts(this);
     Customusers                          = new Customusers(this);
     Equipmentlocations                   = new Equipmentlocations(this);
     Equipments                           = new Equipments(this);
     Incidentbusinesscontactset           = new Incidentbusinesscontactset(this);
     Inspectionactregulationrefset        = new Inspectionactregulationrefset(this);
     Inspectioninspectionchecklset        = new Inspectioninspectionchecklset(this);
     Inspectionchecklistactreguset        = new Inspectionchecklistactreguset(this);
     Inspectionchecklists                 = new Inspectionchecklists(this);
     Inspectionownershipcategories        = new Inspectionownershipcategories(this);
     Inspectionprocessflows               = new Inspectionprocessflows(this);
     Inspections                          = new Inspections(this);
     Investigations                       = new Investigations(this);
     Investigationstepcecontactset        = new Investigationstepcecontactset(this);
     Investigationsteps                   = new Investigationsteps(this);
     Locationequipmentset                 = new Locationequipmentset(this);
     Locations                            = new Locations(this);
     Postalcodes                          = new Postalcodes(this);
     Regions                              = new Regions(this);
     Riskassessments                      = new Riskassessments(this);
     Roles                                = new Roles(this);
     Termsconditionspresets               = new Termsconditionspresets(this);
     Violationtickets                     = new Violationtickets(this);
     Contacts                             = new Contacts(this);
     Incidents                            = new Incidents(this);
     Invoices                             = new Invoices(this);
     Msdyncustomaddressknowledgearticlset = new Msdyncustomaddressknowledgearticlset(this);
     Msdyncustomaddressknowledgebasereset = new Msdyncustomaddressknowledgebasereset(this);
     Sharepointdocumentlocations          = new Sharepointdocumentlocations(this);
     Sharepointsites                      = new Sharepointsites(this);
     Entitydefinitions                    = new Entitydefinitions(this);
     Globaloptionsetdefinitions           = new Globaloptionsetdefinitions(this);
     BaseUri                              = new System.Uri("https://wsgw.dev.jag.gov.bc.ca/pillpress/dev/api/data/v8.2");
     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();
 }