Skip to content

Collab #12

@MelbourneDeveloper

Description

@MelbourneDeveloper

Hi,

Really stoked to find this library. Let's collaborate. This is my framework. I'd like to write an implementation for it using your library.

https://github.com/MelbourneDeveloper/Device.Net

I'm currently trying to get your library working.

Code:

@page "/counter"
@inject IUSB usb

<h1>Counter</h1>

<p>Current count: @currentCount</p>

<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>

@code {

    [Inject] private IUSB _usb { get; set; }

    private int currentCount = 0;

    private async Task IncrementCount()
    {
        await _usb.Initialize();
        var devices = await _usb.GetDevices();
        currentCount = devices.Count();
    }
}

But I get this error:
image

Any ideas?

Christian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions