You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Connect to Hub and Send a Message and retrieving answers (directly on protocol layer)
152
152
153
-
***Note**: The `ILegoWirelessProtocol` class was renamed in 3.0. Previously it is known as `IPoweredUpProtocol`.*
154
-
155
153
````csharp
156
-
157
154
varserviceProvider=newServiceCollection()
158
155
.AddLogging()
159
156
.AddPoweredUp()
160
-
.AddWinRTBluetooth()// using WinRT Bluetooth on Windows (separate NuGet SharpBrick.PoweredUp.WinRT)
157
+
.AddWinRTBluetooth()
161
158
.BuildServiceProvider();
162
159
163
-
using (varscope=serviceProvider.CreateScope()) // create a scoped DI container per intented active connection/protocol. If disposed, disposes all disposable artifacts.
0 commit comments