27 lines
602 B
C#
27 lines
602 B
C#
using Microsoft.JSInterop;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using TIAMWebApp.Shared.Application.Models;
|
|
|
|
namespace TIAMWebApp.Shared.Application.Utility
|
|
{
|
|
internal class LogToBrowserConsole
|
|
{
|
|
private readonly JSRuntime jsRuntime;
|
|
|
|
public LogToBrowserConsole(JSRuntime jSRuntime)
|
|
{
|
|
this.jsRuntime = jsRuntime;
|
|
}
|
|
|
|
public void LogToBC(string message)
|
|
{
|
|
jsRuntime.InvokeVoidAsync("console.log", message);
|
|
}
|
|
|
|
}
|
|
}
|