Skip to content

Commit

Permalink
Merge pull request #2 from fmazzant/m-features-live
Browse files Browse the repository at this point in the history
M features live
  • Loading branch information
fmazzant authored May 30, 2024
2 parents c6fc70b + 7ed94c5 commit 53b7bbc
Show file tree
Hide file tree
Showing 6 changed files with 460 additions and 42 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@
/samples/VimeoClientSampleApp/VimeoKeys.Customer.csv
/samples/VimeoClientSampleApp/VimeoKeys.Test.csv
/samples/.vs/ProjectEvaluation
/samples/VimeoClientSampleApp/bin/Debug/net8.0
4 changes: 2 additions & 2 deletions samples/VimeoClientSampleApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected override RestBuilder Root()

internal static class Program
{
static async Task Main(string[] args)
static void Main(string[] args)
{
/// Load keys from csv file with Mafe.TinyCsv
var csv = new TinyCsv.TinyCsv<VimeoKey>(options =>
Expand All @@ -82,7 +82,7 @@ static async Task Main(string[] args)
options.Columns.AddColumn(x => x.UserToken);
options.Columns.AddColumn(x => x.Cert);
});
var vimeoKeys = await csv.LoadFromFileAsync("../../../../../../VimeoClient.Keys.csv").ToListAsync();
var vimeoKeys = csv.LoadFromFile("../../../../../../VimeoClient.Keys.csv");

/// Get first key and create a vimeoClient instance
var vimeoKey = vimeoKeys.FirstOrDefault();
Expand Down
14 changes: 6 additions & 8 deletions samples/VimeoClientSampleApp/VimeoClientSampleApp.csproj
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Mafe.TinyCsv" Version="2.0.0" />
<PackageReference Include="Mafe.TinyCsv" Version="2.2.1" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\VimeoClient\VimeoClient.csproj" />
</ItemGroup>

<ItemGroup>
<None Update="VimeoKeys.Test.csv">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
Loading

0 comments on commit 53b7bbc

Please sign in to comment.