clarius - Adapter.Implementation.Source 1.0.1212.1016

The provided adapter pattern allows to convert any object to any other supported type, as provided by the registered adapters.

        This package provides the actual implementation of the service. It should only be added to the bootstrapping component of your application.
        
        ======= Example =======
        IProject project = GetCurrentProject();
        // say we need to use it as an MSBuild project, if possible
        IMSBuildProject msbuild = project.As<IMSBuildProject>();
        if (msbuild != null)
            // do MSBuild stuff with it.
        ======= Adapters =======
        public class ProjectToMsBuildAdapter : IAdapter<IProject, IMSBuildProject>
        {
            // Implement actual conversion.
        }

        The conversion behavior is now decoupled from the usage.
        Note that to create adapter implementations, you need to install the Adapter.Sdk package.

PM> Install-Package Adapter.Implementation.Source -Version 1.0.1212.1016 -Source https://www.myget.org/F/clarius/api/v3/index.json

Copy to clipboard

> nuget.exe install Adapter.Implementation.Source -Version 1.0.1212.1016 -Source https://www.myget.org/F/clarius/api/v3/index.json

Copy to clipboard

> dotnet add package Adapter.Implementation.Source --version 1.0.1212.1016 --source https://www.myget.org/F/clarius/api/v3/index.json

Copy to clipboard
<PackageReference Include="Adapter.Implementation.Source" Version="1.0.1212.1016" />
Copy to clipboard
source https://www.myget.org/F/clarius/api/v3/index.json

nuget Adapter.Implementation.Source  ~> 1.0.1212.1016
Copy to clipboard

> choco install Adapter.Implementation.Source --version 1.0.1212.1016 --source https://www.myget.org/F/clarius/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "clarius" -SourceLocation "https://www.myget.org/F/clarius/api/v2"
Install-Module -Name "Adapter.Implementation.Source" -RequiredVersion "1.0.1212.1016" -Repository "clarius" 
Copy to clipboard

v1.1

  • Additional support for source packages, like Adapter.Interfaces.Source, which also use token replacement and adopt the containing project root namespace.

v1.0

  • Initial version, with support for flexible matching of from and to types
  • Support for MEF in separate Adapter.Composition package
  • Proper split of: Adapter.Interfaces, Adapter.Sdk and Adapter (implementation).
  • Any 0.0
    • netfx-Guard (>= 1.3.2)
    • netfx-System.AmbientSingleton (>= 1.1.0)
    • netfx-System.Collections.Generic.IEnumerable.Traverse (>= 1.0.0.17)
    • netfx-System.TypeInheritance (>= 1.1.1)
  • .NETFramework 4.0: 4.0.0.0
  • .NETFramework 4.5: 4.5.0.0

Owners

Clarius Labs kzu

Authors

Daniel Cazzulino

Project URL

https://github.org/clariuslabs/adapter

License

BSD-2-Clause

Tags

patterns adapter

Info

65 total downloads
12 downloads for version 1.0.1212.1016
Download (16.36 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
1.1.1310.2819 17.25 KB Mon, 28 Oct 2013 19:41:12 GMT 11
1.1.1301.1418 17.24 KB Mon, 11 Jan 2016 18:08:33 GMT 5
1.0.1301.1416 16.77 KB Mon, 14 Jan 2013 16:26:59 GMT 4
1.0.1212.1016 16.36 KB Mon, 10 Dec 2012 16:50:46 GMT 12
1.0.1212.0617 16.33 KB Thu, 06 Dec 2012 17:30:42 GMT 6
1.0.1212.0616 16.33 KB Thu, 06 Dec 2012 16:41:42 GMT 4
1.0.1212.0612 16.33 KB Thu, 06 Dec 2012 12:28:14 GMT 5
1.0.1212.0523 16.32 KB Wed, 05 Dec 2012 23:22:19 GMT 6
1.0.1212.0522 13.84 KB Wed, 05 Dec 2012 22:16:10 GMT 3
1.0.1212.0519 13.83 KB Wed, 05 Dec 2012 19:50:33 GMT 5
1.0.1212.0506 13.82 KB Wed, 05 Dec 2012 06:27:27 GMT 4