private void SetPublisherData() { _pd = new CRA.ModelLayer.MetadataTypes.PublisherData(); _pd.Add("Creator", "STICS"); _pd.Add("Date", ""); _pd.Add("Publisher", "INRA"); }
private void SetPublisherData() { _pd = new CRA.ModelLayer.MetadataTypes.PublisherData(); _pd.Add("Creator", "Pierre Martre"); _pd.Add("Date", ""); _pd.Add("Publisher", "INRA Montpellier"); }
private void SetPublisherData() { // Set publishers' data _pd = new CRA.ModelLayer.MetadataTypes.PublisherData(); _pd.Add("Creator", "*****@*****.**"); _pd.Add("Date", "12/8/2016"); _pd.Add("Publisher", "INRA"); }
private void SetPublisherData() { // Set publishers' data _pd = new CRA.ModelLayer.MetadataTypes.PublisherData(); _pd.Add("Creator", "*****@*****.**"); _pd.Add("Date", "24/04/2020"); _pd.Add("Publisher", "INRA"); }
private void SetPublisherData() { // Set publishers' data _pd = new CRA.ModelLayer.MetadataTypes.PublisherData(); _pd.Add("Creator", ""); _pd.Add("Date", ""); _pd.Add("Publisher", ""); }
private void SetPublisherData() { // Set publishers' data _pd = new CRA.ModelLayer.MetadataTypes.PublisherData(); _pd.Add("Creator", "*****@*****.**"); _pd.Add("Date", "9/21/2017"); _pd.Add("Publisher", "Inra"); }
public Publisher <DataType> AddPublisher <DataType>(string topic) { var bridgeType = Plugin.GetBridgeType <DataType>(); if (bridgeType == null) { throw new Exception($"Unknown data type {typeof(DataType).Name} used for publisher in {Plugin.Name} bridge"); } PublisherData.Add(new TopicData(topic, bridgeType)); var pubCreator = Plugin.GetCreatePublisher <DataType>(); if (pubCreator == null) { throw new NotSupportedException($"Publisher on {topic} topic for for {typeof(DataType).Name} not supported by {Plugin.Name} bridge"); } var newPub = pubCreator(Instance, topic); return((DataType data, Action completed) => { foreach (var p in PublisherData) { if (p.Topic == topic) { p.Count += 1; } } newPub(data, completed); }); }