Appwarp - Connection Resiliency - c#

I'm currently implementing connection resiliency for a windows phone game following this documentation: Appwarp Connection Resiliency.
I can't seem to access the RecoverConnection API or any of the Connect Event Result Codes related to Connection Resiliency (SUCCESS_RECOVERED, CONNECTION_ERROR_RECOVERABLE, etc) in the ConnectionRequestListener in my project.
Looking at the AppWarp_WP7_SDK.dll in my project it doesnt seem to contain these API calls. I'm using the .dll downloaded from Appwarp Windows SDK. Anyone know has the .dll changed? Have they been removed from the latest version?
Cheers,
xDev

Please take our latest dll from below link
https://github.com/shephertz/AppWarp_WP7_SDK_DLL
We have also one sample game "Catapult War" in which we have implemented Connection Resiliency feature.Find it from below link
https://github.com/rahulpshephertz/CatapultWar
At the time of initialization don't forget to set recovery allowance.
WarpClient.setRecoveryAllowance(60);

Related

How can I open a connection to "Coinex" websocket using "WebSocketSharp" in C#

I'm currently working om my very own trade bot and I want to stream realtime cryptocurrency price from coinex.com using websocket (documentation is here: "https://github.com/coinexcom/coinex_exchange_api/wiki").
I start with a windows form project in Visual Studio and add websocketsharp Nuget package to make a connection using this two lines of code:
WebSocket ws = new WebSocket("wss://socket.coinex.com/");
ws.Connect();
but connection is not stablished and I can't continue working on other parts of my program.
after a week searching and googling I have no success. I appreciate any help to solve this problem.
I find the problem. The Coinex.com domain restricted (Blocked) here (In IRAN) and I should use Proxy to bypass restriction. But here there is another problem: How can I set Proxy for websocketsharp? there is a "Setproxy" function in "websocketsharp" but do not work.

Azure Service bus Queue using C# : BadImageFormatException when calling QueueClient.CreateFromConnectionString

I am using VS2017 in Mac( with latest packages added for Azure Service Bus), to pull a message from Service bus Queue in Azure. On execution of below code, getting the error
BadImageFormatException - could not resolve field token 0x0400089c
Its coming from CreateFromConnectionString and the stack points to MessageFactory.create call which happens under the hood, on our call to CreateFromConnectionString.
Got many pointers like x86 issue and all, but none were certain on what to look into. I was using Release x86, then tried Rel AnyCpu as well.
Does anyone faced this issue before or any pointers to resolve this.
string connectionString = "Endpoint=sb://spxxxx.servicebus.windows.net/;SharedAccessKeyName=Root**Key;SharedAccessKey=xxxx.......xxxxxxxx=";
string queueName = "spqueue";
QueueClient client = QueueClient.CreateFromConnectionString(connectionString, queueName);
Also did an trail by creating the MessageFactory in the program itself. Got same error at MessagingFactory.Create
Also connectionString and queue name are fine, as I am able to generate the Authorization token correctly using this code and postman connected to the Q using the same without any issues.
Thanks!
Let me know if any additional details needs to be added.
AFAIK, Visual Studio 2017 for Mac provides the ability for using Xamarin and .NET Core to build mobile,web, and cloud applications on macOS. Per my understanding,
the Microsoft Azure Service Bus 4.1.3 targets on the traditional .NET Framework, you could try to use the next generation Azure Service Bus .NET Standard client library Microsoft.Azure.ServiceBus 0.0.7-preview.

SM59 configuration to get information from .NET connector 3.0

Sap Consultants: I always get the information from sap r/3(RFC) through sap connector 3.0 (c#) succesfully, Without any configuration in sap R/3.
I would like to know if im doing it wrong because someone told me to do it in the correct way (SM59).
How to do it with SM59 Configuration?
Please step by step in detail
if possible,
you only need to configure a RFC destination if the SAP system has to call a function in your C# code (rarely needed, but for instance if you build an IDoc Receiver -> SAP ERP calls your code, not the other way round). As long as you only call remote function modules in the SAP system, you don't need any configuration in SM59.

Oracle Instant Client not working C#

I'm having trouble installing the oracle instant client, it won't work even though i followed the directions here http://www.oracle.com/technetwork/database/features/instant-client/index-100365.html
Here is my PATH variable http://prntscr.com/3yzql4 , as you can see the PATH has the value of a directory where instant client is located.
However, when i start a project (that uses fluent nhibernate) i get the following exception
InnerException {"System.Data.OracleClient requires Oracle client software version 8.1.7 or greater."}
at this line in code
return Fluently.Configure()
.Database(cfg)
.Mappings(m => m.FluentMappings.AddFromAssemblyOf<ZAPOSLENIMAPIRANJE>())
//.ExposeConfiguration(BuildSchema)
.BuildSessionFactory();
I know that people are saying that ODP.NET is better, but this is for a college project and i must use this.
The exception says you need version 8.1.7 of the Oracle client. This is a very old version, that is no longer available for download, and has not been, for years.
I think you need to update your entire toolchain, to something that supports at least Oracle 11gR2, if not Oracle 12cR1.
I know you said this was for a class project, so I recommend you talk to the instructor, and ask where he suggests you get Oracle 8.1.7 client software. (Hint: The only official source is Oracle Corp., but only if you have a support contract and request it.)

Firebird 1.5 / Asp net VS 2010 (legacy database .CDB extension)

I have an old system which generated me a database in .CDB extension (i run on Firebird-1.5.6.5026-0-Win32) and i can access this database in IBExpert to query and stuff. But i need to write an application in .NET (VS 2010 4.0 framaework) so i can read this database and access some of the data to insert into a table inside SQLServer.
I tried many things, changed the server version and other things but i now all i get is ''Cannot find fbembed.dll'' exception error while trying to open the connection. My FB server doesnt have this file since he uses the 'fbclient.dll' already.
Any thoughts on how to connect my application to this .CDB database?
(this firebird version is the same that the legacy system is running, so i used the 1.7RC firebird .net provider within this server)
The connection string used is:
<add name="FirebirdConnectionString" connectionString="User=SYSDBA;Password=masterkey;
Database=localhost:C:\temp\BD\E‌​CLECTIC.CDB;DataSource=localhost;Port=3051;
Dialect=3;Charset=NONE;Role=;Connectio‌​n lifetime=15; Pooling=false;
MinPoolSize=0; MaxPoolSize=50; Packet Size=8192; ServerType=1;"
providerName="FirebirdSql.Data.FirebirdClient"/>
Unless you really want to use Firebird embedded (which you don't as you also specify localhost), you should not specify ServerType=1, but either leave it out entirely or set ServerType=0.
As to your other problem you mention in the comments, I suggest you check if this solves it and otherwise create a new question with more information.

Categories

Resources