namespace Unosquare.WiringPi { using RaspberryIO.Abstractions; using Swan.DependencyInjection; /// /// 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()); } } } }