internal override void Create(SlpReader reader) { base.Create(reader); Scopes.AddRange(reader.ReadList()); Service = Services.Locator.GetInstance<ServiceEntry>(reader); Tags.AddRange(reader.ReadList()); }
internal override void Create(SlpReader reader) { base.Create(reader); Scopes.AddRange(reader.ReadList()); Service = Services.Locator.GetInstance <ServiceEntry>(reader); Tags.AddRange(reader.ReadList()); }
internal override void Create(SlpReader reader) { base.Create(reader); ReadIPList(reader, PreviousResponders); Uri = new ServiceUri(reader.ReadString()); Scopes.AddRange(reader.ReadList()); Tags.AddRange(reader.ReadList()); Spi = reader.ReadString(); }
internal override void Create(SlpReader reader) { base.Create(reader); ErrorCode = (ServiceErrorCode)reader.ReadInt16(); BootTimeStamp = reader.ReadDateTime(); var url = reader.ReadString(); Scopes.AddRange(reader.ReadList()); Uri = new ServiceUri(url, Services.Locator.GetInstance <AttributeCollection>(reader)); SpiStrings.AddRange(reader.ReadList()); ReadAuthBlocks(reader, AuthBlocks); }
internal override void Create(SlpReader reader) { base.Create(reader); var tmp = reader.ReadList(); ServiceTypes = new ReadOnlyCollection<ServiceUri>(tmp.Select(s => new ServiceUri("service:" + s)).ToArray()); }
internal override void Create(SlpReader reader) { base.Create(reader); var tmp = reader.ReadList(); ServiceTypes = new ReadOnlyCollection <ServiceUri>(tmp.Select(s => new ServiceUri("service:" + s)).ToArray()); }
internal override void Create(SlpReader reader) { base.Create(reader); ReadIPList(reader, PreviousResponders); Scopes.AddRange(reader.ReadList()); AttributeFilter = reader.ReadString(); Spi = reader.ReadString(); }
internal override void Create(SlpReader reader) { base.Create(reader); var tmp = reader.ReadString(); Scopes.AddRange(reader.ReadList()); Uri = new ServiceUri(tmp, Services.Locator.GetInstance <AttributeCollection>(reader)); ReadAuthBlocks(reader, AuthBlocks); }
protected void ReadIPList(SlpReader reader, IList<IPAddress> list) { foreach (var item in reader.ReadList()) { var i = IPAddress.Parse(item); if (i.AddressFamily != AddressFamily.InterNetwork) throw new ServiceException("IP v4 addresses are the only allowable type."); list.Add(i); } }
internal override void Create(SlpReader reader) { base.Create(reader); Service = Services.Locator.GetInstance<ServiceEntry>(reader); var tmp = reader.ReadString(); Scopes.AddRange(reader.ReadList()); Service.Uri = new ServiceUri("service:" + tmp + ":" + Services.Locator.GetInstance<AttributeCollection>(reader)); ReadAuthBlocks(reader, AuthBlocks); }
protected void ReadIPList(SlpReader reader, IList <IPAddress> list) { foreach (var item in reader.ReadList()) { var i = IPAddress.Parse(item); if (i.AddressFamily != AddressFamily.InterNetwork) { throw new ServiceException("IP v4 addresses are the only allowable type."); } list.Add(i); } }
internal override void Create(SlpReader reader) { base.Create(reader); var tmp = reader.ReadInt16(); if (tmp == 0xfff) { GetAllAuthorities = true; } else { NamingAuthority = reader.ReadString(tmp); } Scopes.AddRange(reader.ReadList()); }
internal override void Create(SlpReader reader) { base.Create(reader); var tmp = reader.ReadInt16(); if (tmp == 0xfff) GetAllAuthorities = true; else NamingAuthority = reader.ReadString(tmp); Scopes.AddRange(reader.ReadList()); }
internal override void Create(SlpReader reader) { base.Create(reader); ErrorCode = (ServiceErrorCode)reader.ReadInt16(); BootTimeStamp = reader.ReadDateTime(); var url = reader.ReadString(); Scopes.AddRange(reader.ReadList()); Uri = new ServiceUri(url, Services.Locator.GetInstance<AttributeCollection>(reader)); SpiStrings.AddRange(reader.ReadList()); ReadAuthBlocks(reader, AuthBlocks); }