using System;
using Swan.DependencyInjection;
using Unosquare.RaspberryIO.Abstractions;
namespace Unosquare.WiringPi {
///
/// Represents the Bootstrap class to extract resources.
///
///
public class BootstrapWiringPi : IBootstrap
{
private static readonly Object SyncLock = new Object();
///
public void Bootstrap()
{
lock (SyncLock)
{
Resources.EmbeddedResources.ExtractAll();
DependencyContainer.Current.Register(new GpioController());
DependencyContainer.Current.Register(new SpiBus());
DependencyContainer.Current.Register(new I2CBus());
DependencyContainer.Current.Register(new SystemInfo());
DependencyContainer.Current.Register(new Timing());
DependencyContainer.Current.Register(new Threading());
}
}
}
}