OpenHome.Net.Core.Library.StartDv C# (CSharp) Method

StartDv() public method

Start the library as a UPnP device stack
public StartDv ( ) : DeviceStack
return DeviceStack
        public DeviceStack StartDv()
        {
            uint err = OhNetLibraryStartDv();
            CheckStartupError(err);
            return new DeviceStack();
        }

Usage Example

Ejemplo n.º 1
0
 public static void Main(string[] args)
 {
     // !!!! add OptionParser class rather than relying on the user guessing that the first arg
     // is an int 1..3 and the second is the path of a folder that'll serve a test UI
     Core.InitParams initParams = new Core.InitParams();
     using (Core.Library lib = Core.Library.Create(initParams))
     {
         lib.StartDv();
         Console.Write("TestDvLights - starting\n");
         DeviceLights device  = new DeviceLights(Convert.ToInt32(args[0]), args[1]);
         Semaphore    blocker = new Semaphore(0, 1);
         blocker.WaitOne(60 * 60 * 1000); // make the device available for 1 hour then assume we've been forgotten about and exit
         device.Dispose();
         Console.Write("TestDvLights - exiting\n");
     }
 }
All Usage Examples Of OpenHome.Net.Core.Library::StartDv