コード例 #1
0
ファイル: Root.cs プロジェクト: kobeyoung81/JBServer
 public Root(DeviceType type,
             string udn,
             string friendlyName,
             string manufacturer,
             string modelName,
             DeviceOptions options)
 {
     // The device knows how to handle embedded devices itself so don't pass them in
     RootDevice  = new Device(type, udn, friendlyName, manufacturer, modelName, options, null);
     SpecVersion = new SpecVersion(1, 1);
 }
コード例 #2
0
ファイル: Root.cs プロジェクト: dufoli/Mono.Upnp
        public Root(DeviceType type,
                    string udn,
                    string friendlyName,
                    string manufacturer,
                    string modelName,
                    RootDeviceOptions options)
        {
            var embedded_devices = options != null ? options.EmbeddedDevices : null;

            RootDevice  = new Device(type, udn, friendlyName, manufacturer, modelName, options, embedded_devices);
            SpecVersion = new SpecVersion(1, 1);
        }