I'am building module to generate SWIFT messages , are there any Java APIs to generate 20022 SWIFT messages, i don't create them manually
mainly I am interested in:
• pain.008
• pacs.003
Related
I'm trying to limit the amount of data sent to Application Insights in a .NET Core program. I'm attempting to follow the documention here which says I should use the UseAdaptiveSampling method. It has the rather cryptic instruction:
Use extension methods of TelemetryProcessorChainBuilder as shown below to customize sampling behavior.
However, it doesn't tell me where exactly this extension method lives. My code is as follows:
public AppInsightsStats(string appInsightsKey)
{
TelemetryConfiguration configuration = TelemetryConfiguration.CreateDefault();
configuration.InstrumentationKey = appInsightsKey;
telemetry = new TelemetryClient(configuration);
// Enable sampling since amount of logging is massive
var builder = configuration.DefaultTelemetrySink.TelemetryProcessorChainBuilder;
builder.UseAdaptiveSampling(maxTelemetryItemsPerSecond:5); // <-- Compiler error here
}
However, the code doesn't compile since UseAdaptiveSampling isn't found. I have the following using statements:
using Microsoft.ApplicationInsights;
using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.ApplicationInsights.Extensibility;
The source code I can dig up that uses UseAdaptiveSampling all seems to be .NET Framework 4.5 code, so I'm wondering if this just isn't included with the .NET Core version. These instructions are for ASP.NET Core, but I'm wondering if they mean running that on the .NET Framework on Windows.
For console project, you should use this package Microsoft.ApplicationInsights.WorkerService. It's used for non-http application like console project.
I used your code with this package, everything is ok. Please give it a try, and let me know if you still have the issue.
Newbie to dialog flow, trying to integrate the java library.
Confused between the two dependencies below:
1) https://cloud.google.com/dialogflow/docs/reference/libraries/java
2) https://developers.google.com/api-client-library/java/apis/dialogflow/v2
The first one says java client library and the second one says api client library for java.
Which is the correct dependency to interact with the dialog flow
I have a Objective C framework. (This framework is working properly with a Swift project)
Then I have a Swift framework. This framework has used the previously mentioned Objective C framework. (This Swift framework also working in a Swift project)
Now I am trying to use that Swift framework inside a Xamarin iOS project.
I have created a Binding Library project in my Xamarin iOS project and under the Native Reference, I have added both those Swift framework and Objective C framework fat files.
I have updated the ApiDefinition file accordingly as well.
But when I run the application it launch in the phone and exit without giving any error. I'm glad if application crashed with an error. But it doesn't and I'm clueless now. Any thoughts?
Below is how I'm trying to access the methods in those frameworks inside my Xamarin iOS project
using BindingSwift;
// More codes here
public override void ViewDidLoad()
{
base.ViewDidLoad();
var myClass = new AroshaMathPerformer();
var result = myClass.DoTheMath;
Console.WriteLine("# Result = " + result);
}
But, if I add a breakpoint, it doesn't even hit at the run time before the application exits.
Assuming that everything you did is in the question, then it is expected not to work. Swift libraries are not officially supported on Xamarin.iOS. Some people made them work with these steps: https://medium.com/#Flash3001/binding-swift-libraries-xamarin-ios-ff32adbc7c76
In such a case, you can find the real reason by going to
Settings -> Privacy -> Analytics -> Analytics Data -> And find the log
file with your bundle ID and the crashed occur date/time.
The error show to me was related to #rpath/ but actually it solved after signing the bundle with a valid provisioning profile.
For those who are interesting, you can visit here to find out my experience of implementing this whole scenario mentioned in the title.
Building a cross platform app that utilizes a native C library (using P/Invoke) to send commands to a remote server, how can it be architected to suit the MVVMCross framework?
Thanks!
It's not clear which framework(s) you are using.
Assuming iOS, see how to use P/Invoke at http://docs.xamarin.com/guides/ios/advanced_topics/native_interop
After getting the P/Invoke to work, if you need to access this in PCL code, then you'll need to use some form of dependency injection technique - one such technique is plugins - https://speakerdeck.com/cirrious/plugins-in-mvvmcross
Using .Net Micro Framework, how do I get the value of "socket_id" out of the following string:
{"event":"pusher:connection_established","data":"{"socket_id":"2475.1248660"}"}
It's not exactly getting a substring, but have you considered using the netduino Helpers library. It has some lightweight helpers for .NET MF (including a JSON parser).