private void Send_Click(object sender, RoutedEventArgs e) { if (FSBL.FDC3Client is object) { //FDC3 Usage example //Broadcast var context = new Context(new JObject { ["type"] = "fdc3.instrument", ["name"] = DataToSend.TextBox.Text, ["id"] = new JObject { ["ticker"] = DataToSend.TextBox.Text } }); FSBL.FDC3Client.DesktopAgentClient.Broadcast(context); } else { // Use Default Linker FSBL.LinkerClient?.Publish(new JObject { ["dataType"] = "symbol", ["data"] = DataToSend.TextBox.Text }); } FSBL.getDispatcher().Invoke(async delegate //main thread { DroppedData.Content = DataToSend.TextBox.Text; DroppedDataSource.Content = "via Text entry"; await SaveStateAsync(); }); }