protected virtual void AddTxtRecords(ITxtRecord record) { }
internal static byte[][] Render(ITxtRecord record) { byte [][] items = new byte[record.Count][]; int index = 0; foreach (TxtRecordItem item in record) { string txt = String.Format ("{0}={1}", item.Key, item.ValueString); items[index++] = encoding.GetBytes (txt); } return items; }
public TxtRecord(IZeroconfProvider provider = null) { ProviderFactory.SelectedProvider = provider; record = (ITxtRecord)Activator.CreateInstance(ProviderFactory.SelectedProvider.TxtRecord); }
public TxtRecord() { record = (ITxtRecord)Activator.CreateInstance(ProviderFactory.SelectedProvider.TxtRecord); }