Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Minimal vb example #5

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions FiskalyClientVbDemo/FiskalyClientVbDemo.vbproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">

<ItemGroup>
<ProjectReference Include="..\FiskalyClient\FiskalyClient.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Serilog" Version="2.8.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="3.1.1" />
</ItemGroup>

<PropertyGroup>
<OutputType>Exe</OutputType>
<RootNamespace>FiskalyClientVbDemo</RootNamespace>
<TargetFramework>netcoreapp3.0</TargetFramework>
</PropertyGroup>

</Project>
13 changes: 13 additions & 0 deletions FiskalyClientVbDemo/Program.vb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Imports System
Imports Fiskaly.Client
Imports System.Net.Http
Imports Serilog

Module Program
Sub Main(args As String())
Log.Logger = New LoggerConfiguration().WriteTo.Console().CreateLogger()
Dim apiKey as String = Environment.GetEnvironmentVariable("API_KEY")
Dim apiSecret as String = Environment.GetEnvironmentVariable("API_SECRET")
Dim client As HttpClient = ClientFactory.Create(apiKey, apiSecret).AsTask().Result
End Sub
End Module