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()); } } } }