/// <summary> /// Initializes a new instance of the <see cref="DelivereeApi"/> class. /// </summary> /// <returns></returns> public DelivereeApi(string basePath) { Configuration = new IO.Deliveree.Client.Configuration { BasePath = basePath }; ExceptionFactory = IO.Deliveree.Client.Configuration.DefaultExceptionFactory; }
/// <summary> /// Initializes a new instance of the <see cref="DelivereeApi"/> class /// using Configuration object /// </summary> /// <param name="configuration">An instance of Configuration</param> /// <returns></returns> public DelivereeApi(IO.Deliveree.Client.Configuration configuration = null) { if (configuration == null) // use the default one in Configuration { Configuration = IO.Deliveree.Client.Configuration.Default; } else { Configuration = configuration; } ExceptionFactory = IO.Deliveree.Client.Configuration.DefaultExceptionFactory; }