ThemeHelpers
using Microsoft.JSInterop;
using System.Runtime.CompilerServices;
using Taiizor.Starterkit.Interface;
namespace Taiizor.Starterkit.Extension
{
public class ThemeHelpers : IThemeHelpers
{
private readonly IJSRuntime _js;
public ThemeHelpers(IJSRuntime js)
{
_js = js;
}
[AsyncStateMachine(typeof(<AddBodyClass>d__2))]
public void AddBodyClass(string className)
{
<AddBodyClass>d__2 stateMachine = default(<AddBodyClass>d__2);
stateMachine.<>t__builder = AsyncVoidMethodBuilder.Create();
stateMachine.<>4__this = this;
stateMachine.className = className;
stateMachine.<>1__state = -1;
stateMachine.<>t__builder.Start(ref stateMachine);
}
[AsyncStateMachine(typeof(<RemoveBodyClass>d__3))]
public void RemoveBodyClass(string className)
{
<RemoveBodyClass>d__3 stateMachine = default(<RemoveBodyClass>d__3);
stateMachine.<>t__builder = AsyncVoidMethodBuilder.Create();
stateMachine.<>4__this = this;
stateMachine.className = className;
stateMachine.<>1__state = -1;
stateMachine.<>t__builder.Start(ref stateMachine);
}
[AsyncStateMachine(typeof(<RemoveBodyAttribute>d__4))]
public void RemoveBodyAttribute(string attribute)
{
<RemoveBodyAttribute>d__4 stateMachine = default(<RemoveBodyAttribute>d__4);
stateMachine.<>t__builder = AsyncVoidMethodBuilder.Create();
stateMachine.<>4__this = this;
stateMachine.attribute = attribute;
stateMachine.<>1__state = -1;
stateMachine.<>t__builder.Start(ref stateMachine);
}
[AsyncStateMachine(typeof(<AddBodyAttribute>d__5))]
public void AddBodyAttribute(string attribute, string value)
{
<AddBodyAttribute>d__5 stateMachine = default(<AddBodyAttribute>d__5);
stateMachine.<>t__builder = AsyncVoidMethodBuilder.Create();
stateMachine.<>4__this = this;
stateMachine.attribute = attribute;
stateMachine.value = value;
stateMachine.<>1__state = -1;
stateMachine.<>t__builder.Start(ref stateMachine);
}
}
}