From 87950cd107e0388f9abad5979744dd04c19d1eb6 Mon Sep 17 00:00:00 2001 From: Ivar Løvlie <38570165+ivarlovlie@users.noreply.github.com> Date: Wed, 31 Mar 2021 20:28:31 +0200 Subject: Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a57deb5..b8448e1 100644 --- a/README.md +++ b/README.md @@ -18,10 +18,10 @@ services.AddVippsEcommerceService(o => { ``` See [VippsConfiguration.cs](https://github.com/ivarlovlie/IOL.VippsEcommerce/blob/master/src/IOL.VippsEcommerce/Models/VippsConfiguration.cs) for available properties. -You can also use environment variables to configure the service, example: +You can configure how to get values with the `ConfigurationMode` property, valid modes is specified in [VippsConfigurationMode.cs](https://github.com/ivarlovlie/IOL.VippsEcommerce/blob/master/src/IOL.VippsEcommerce/Models/VippsConfigurationMode.cs), example: ```csharp services.AddVippsEcommerceService(o => { - o.UseEnvironment = true; + o.ConfigurationMode = VippsConfigurationMode.ENVIRONMENT_THEN_OBJECT; }); ``` -- cgit v1.3 From 69ca188804a05b827d4f705ed2fe291d04f29716 Mon Sep 17 00:00:00 2001 From: Ivar Løvlie <38570165+ivarlovlie@users.noreply.github.com> Date: Wed, 31 Mar 2021 20:32:36 +0200 Subject: Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index b8448e1..363281c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +Implements https://vippsas.github.io/vipps-ecom-api/, more or less. + ## Install `dotnet add package IOL.VippsEcommerce` -- cgit v1.3 From 09a0963616522354558987f668f9b8b826065592 Mon Sep 17 00:00:00 2001 From: Ivar Løvlie <38570165+ivarlovlie@users.noreply.github.com> Date: Wed, 31 Mar 2021 20:33:54 +0200 Subject: Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 363281c..699e5ad 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ services.AddVippsEcommerceService(o => { }); ``` -With the above example, the service will look for configuration values in the current environment using names specified in [VippsConfigurationKeyNames.cs](https://github.com/ivarlovlie/IOL.VippsEcommerce/blob/master/src/IOL.VippsEcommerce/Models/VippsConfigurationKeyNames.cs). The environment variable name for a given property is also specified in it's XML-documentation. +With the above example, the service will look for configuration values in the current environment using names specified in [VippsConfigurationKeyNames.cs](https://github.com/ivarlovlie/IOL.VippsEcommerce/blob/master/src/IOL.VippsEcommerce/Models/VippsConfigurationKeyNames.cs), then in the configuration object. The environment variable name for a given property is also specified in it's XML-documentation. ## Caching -- cgit v1.3 From 665f51a77840baf2079a3ac15944d74f575f81c4 Mon Sep 17 00:00:00 2001 From: Ivar Løvlie <38570165+ivarlovlie@users.noreply.github.com> Date: Wed, 31 Mar 2021 21:14:53 +0200 Subject: Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 699e5ad..3668977 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ The service targets net5.0. \ ## Configuration -Use DI to add and configure the service to your liking, example: +Use Dependency Injection to add and configure the service to your liking, example: ```csharp services.AddVippsEcommerceService(o => { o.ApiUrl = ""; -- cgit v1.3