Exico.Shopify.Lib.ShopifySharpHelpers
1.0.4
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Exico.Shopify.Lib.ShopifySharpHelpers --version 1.0.4
NuGet\Install-Package Exico.Shopify.Lib.ShopifySharpHelpers -Version 1.0.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Exico.Shopify.Lib.ShopifySharpHelpers" Version="1.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Exico.Shopify.Lib.ShopifySharpHelpers --version 1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Exico.Shopify.Lib.ShopifySharpHelpers, 1.0.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Exico.Shopify.Lib.ShopifySharpHelpers as a Cake Addin #addin nuget:?package=Exico.Shopify.Lib.ShopifySharpHelpers&version=1.0.4 // Install Exico.Shopify.Lib.ShopifySharpHelpers as a Cake Tool #tool nuget:?package=Exico.Shopify.Lib.ShopifySharpHelpers&version=1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
How to use using DI
First Create a shopify api credential provider
using Exico.Shopify.Lib.ShopifySharpHelpers.Interfaces;
public class ShopifyApiCredentialProvider : IShopifyApiCredential
{
public ShopifyApiCredentialProvider( )
{
}
public async Task<string> GetMyShopifyDomain()
{
return "user";
}
public async Task<string> GetStoreToken()
{
return "pass";
}
}
Then in the Startup.cs class do this
using using Exico.Shopify.Lib.ShopifySharpHelpers;
using Exico.Shopify.Lib.ShopifySharpHelpers.Interfaces;
namespace some_name_space
{
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
.....
services.AddTransient<IShopifyApiCredential,ShopifyApiCredentialProvider>();
services.AddExicoShopifySharpHelpersLib();
}
}
}
Then in the controller you can inject the helper like this
using using Exico.Shopify.Lib.ShopifySharpHelpers.Interfaces;
public class AController : Controller
{
public AController (IMetaFieldServiceHelper mtfHelper)
{
}
}
The list of helper interfaces you can inject are
- IMetaFieldServiceHelper
- IAssetServiceHelper
- IThemeServiceHelper
- IScriptTagServiceHelper
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.1 is compatible. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 2.1
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 2.1.1)
- Microsoft.Extensions.Logging (>= 2.1.1)
- ShopifySharp (>= 4.16.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.