NuGet Gallery Feed for Adapter.ImplementationThe 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.https://www.nuget.org/packages/Adapter.Implementation/2018-12-08T09:59:58Zhttps://api.nuget.org/v3-flatcontainer/adapter.implementation/1.1.1301.1418/iconhttps://www.nuget.org/packages/Adapter.Implementation/1.1.1301.1418Adapter.Implementation 1.1.1301.14182013-01-14T18:47:56Z2018-12-08T09:59:58Zclariuslabshttps://www.nuget.org/profiles/clariuslabsThe 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.https://www.nuget.org/packages/Adapter.Implementation/1.0.1301.1416Adapter.Implementation 1.0.1301.14162013-01-14T16:32:40Z2018-12-08T09:59:58Zclariuslabshttps://www.nuget.org/profiles/clariuslabsThe 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.https://www.nuget.org/packages/Adapter.Implementation/1.0.1212.1016Adapter.Implementation 1.0.1212.10162012-12-10T20:21:28Z2018-12-08T09:59:56Zclariuslabshttps://www.nuget.org/profiles/clariuslabsThe 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.https://www.nuget.org/packages/Adapter.Implementation/1.0.1212.616Adapter.Implementation 1.0.1212.06162012-12-06T17:05:23Z2018-12-08T09:59:58Zclariuslabshttps://www.nuget.org/profiles/clariuslabsThe 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.