Example #1
0
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     SharepointSites             = new SharepointSites(this);
     SharepointSite              = new SharepointSite(this);
     Accounts                    = new Accounts(this);
     Aliases                     = new Aliases(this);
     Applications                = new Applications(this);
     Corporatehistorysummaries   = new Corporatehistorysummaries(this);
     Corporateroles              = new Corporateroles(this);
     Establishments              = new Establishments(this);
     Adoxiolegalentities         = new Adoxiolegalentities(this);
     AdoxioLicencetypes          = new AdoxioLicencetypes(this);
     Licenses                    = new Licenses(this);
     Personalhistorysummaries    = new Personalhistorysummaries(this);
     Policydocuments             = new Policydocuments(this);
     Previousaddresses           = new Previousaddresses(this);
     Spddatarows                 = new Spddatarows(this);
     Spdexportses                = new Spdexportses(this);
     AdoxioTiedhouseassociations = new AdoxioTiedhouseassociations(this);
     AdoxioTiedhouseconnections  = new AdoxioTiedhouseconnections(this);
     Workers                     = new Workers(this);
     Contacts                    = new Contacts(this);
     Invoices                    = new Invoices(this);
     SharepointDocumentLocations = new SharepointDocumentLocations(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();
 }
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     Accounts                    = new Accounts(this);
     Applications                = new Applications(this);
     Adoxiolegalentities         = new Adoxiolegalentities(this);
     AdoxioLicencetypes          = new AdoxioLicencetypes(this);
     AdoxioTiedhouseassociations = new AdoxioTiedhouseassociations(this);
     AdoxioTiedhouseconnections  = new AdoxioTiedhouseconnections(this);
     Contacts                    = new Contacts(this);
     Invoices                    = new Invoices(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();
 }