Skip to content

Latest commit

 

History

History
74 lines (56 loc) · 2.26 KB

README.md

File metadata and controls

74 lines (56 loc) · 2.26 KB

Ettissal

Nuget

A nuget package that provides a component for Blazor WASM to check application connectivity to internet.

Installation

Install the nuget package in your Blazor WASM project:

dotnet add package Ettissal

Or,

NuGet\Install-Package Ettissal

How to use?

You have a Blazor WASM project and you want to check the application connectivity to internet. You can use the Ettissal component to do that.

Add Ettissal Library

Add the following line to the service collection in Program.cs file:

builder.Services.AddEttissal();

Use Ettissal ConnectedComponent

Using this component, you can check the application connectivity to internet. You can use it in any page or component in your Blazor WASM project.

<ConnectedComponent>
    <Online>
        <p>You're Online</p>
    </Online>
    <Offline>
        <p>You're Offline</p>
    </Offline>
</ConnectedComponent>

This will help you to show the content based on the application connectivity to internet. As you can see, you can use the Online and Offline components to show the content when the application is online or offline.

Result

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Author

Contact