Skip to content

Commit

Permalink
Implement IExtendedEnricherMetadata #12
Browse files Browse the repository at this point in the history
  • Loading branch information
BenFidge committed Nov 27, 2019
1 parent c509a52 commit bfc975b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CSharp" Version="4.6.0" />
<!-- <PackageReference Include="Microsoft.CSharp" Version="4.6.0" /> -->
</ItemGroup>

</Project>
8 changes: 7 additions & 1 deletion src/ExternalSearch.Providers.VatLayer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,15 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
</PropertyGroup>
<ItemGroup>
<None Remove="Resources\cluedin.png" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\cluedin.png" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="CluedIn.ExternalSearch">
<Version>2.4.0-alpha0183</Version>
<Version>2.6.0-alpha0003</Version>
</PackageReference>
<PackageReference Include="MediaToolkit">
<Version>1.1.0.1</Version>
Expand Down
Binary file added src/Resources/cluedin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion src/VatLayerExternalSearchProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
using CluedIn.Core;
using CluedIn.Core.Data;
using CluedIn.Core.Data.Parts;
using CluedIn.Core.Data.Relational;
using CluedIn.Core.ExternalSearch;
using CluedIn.Core.Providers;
using CluedIn.ExternalSearch.Providers.VatLayer.Models;
using CluedIn.ExternalSearch.Providers.VatLayer.Utility;
using CluedIn.ExternalSearch.Providers.VatLayer.Vocabularies;
Expand All @@ -15,12 +17,13 @@

using RestSharp;
using RestSharp.Extensions.MonoHttp;
using EntityType = CluedIn.Core.Data.EntityType;

namespace CluedIn.ExternalSearch.Providers.VatLayer
{
/// <summary>The VatLayer graph external search provider.</summary>
/// <seealso cref="ExternalSearchProviderBase" />
public class VatLayerExternalSearchProvider : ExternalSearchProviderBase
public class VatLayerExternalSearchProvider : ExternalSearchProviderBase, IExtendedEnricherMetadata
{
/**********************************************************************************************************
* CONSTRUCTORS
Expand Down Expand Up @@ -404,5 +407,13 @@ private static void PopulateMetadata(IEntityMetadata metadata, IExternalSearchQu

metadata.Properties[VatLayerVocabulary.Organization.Address] = resultItem.Data.CompanyAddress;
}

public string Icon { get; } = "Resources.cluedin.png";
public string Domain { get; } = "To be confirmed";
public string About { get; } = "A test Enricher used to work with known data during acceptance tests";
public AuthMethods AuthMethods { get; } = null;
public IEnumerable<Control> Properties { get; } = null;
public Guide Guide { get; } = null;
public IntegrationType Type { get; } = IntegrationType.Cloud;
}
}

0 comments on commit bfc975b

Please sign in to comment.