Launch Citrix 7.6 Storefront Published App Programmatically - c#

I've been looking through tons of forum posts and documentation, but I can not find out how to authenticate/launch an app published through a Citrix 7.6 Storefront interface programmatically (preferably in C#). I'm extremely new to working with Citrix so any help would be appreciated.
At my company, we currently have a launcher like I described that works with Citrix 6.5 Web Interface, but we get generic errors when we attempt to use the same technique with 7.6 Storefront.
Can anyone provide me with a sample application doing what I want or point me towards an appropriate SDK/Documentation resource? I would be EXCEPTIONALLY grateful for any assistance!
Thanks!

Very very old post but since I was struggling as well, here's some pointers that works well with StoreFront 3.5.
First of all, the following code works with the StoreFront web api and basic HTTP authentication. You must first do this on the StoreFront server to enabled the authentication with the following code:
Open Citrix StoreFront
Click on "Manage Authentication Method"
Check the box "Basic HTTP"
Here's a class that you can drop in that will work given that you install the following nuget packages:
RestSharp
JSON.NET
WebApi C# Sample
(Sorry I wasn't able to past the code directly here because of formatting)
The sample can be copy/pasted into a console application. I have written and cleaned up the code such that anyone can understand and use it.

if you are using the Receiver 4.0 you can use the Receivers -qlaunch parameter.
See the Citrix dokumentation https://support.citrix.com/article/CTX200337
SelfService.exe –qlaunch “appname” is the command and you can use the process start command in c# to launch the application by name.
I hope this will also help as a simple solution.
Regards Bernd

Related

Building a remote command for Elpis in C# through HTTP API

I am helping to build Elpis, which is an open source pandora music player, built with C# and WPF.
Now what i want is to add an HTTP API so that the user may control the program through a browser, like play/pause, like/dislike the current song.
The point afterwards is to control the program through a mobile device accessing the HTTP API.
How exactly should i build the HTTP API so that it can control it?
Github for the project: https://github.com/adammhaile/Elpis
Without knowing why exactly you want the user to control a GUI application via the browser, it's hard to give you good advise.
Assuming you are running your GUI on Windows, take a look at OWIN and the project Katana. They allow you to easily host HTTP interfaces in your own application.
It may be overkill for your project but I would suggest using ASP.NET Web API so that you can build backend web services.
The easiest way to do what you want, assuming you really want to "control the GUI remotely" is to just install TeamViewer on your PC and on your mobile device. Then you could remote in and completely control your GUI.
But I what I think you're after is something more like Google Music. Where you can stream your music through the Internet and onto your mobile devices. If this is the case, I recommend you look at the ASP.NET Web API.
It's not hard to build a web server in C#. You can embed it into your application, and expose parts of your application to HTTP endpoints as an API. You can use the HttpListener class which is part of .NET, and do everything from the ground up yourself. Or you could use something like Nancy, which is a lightweight framework that provides a lot of useful scaffolding like URL routing.
Ended up using Kayak(https://github.com/kayak/kayak) for my self-hosted API.
The example of integration can be seen here:
https://github.com/adammhaile/Elpis/blob/master/Elpis/WebInterface.cs

Create a virtual machine in windows azure programmatically with C# code or .net

As we know that a new feature called virtual machine has been added in windows azure portal. but i want to create a virtual machine in windows azure programmatically with C# or . net. so can any one please help in this... which API shoud i use or yet the API for .net need to be published by azure people? please any one guide me to do this task.
You'll likely want to use Azure's REST Service Management APIs. For example, APIs for creating and managing VMs are here: Create Virtual Machine Deployment.
The overall API is documented here.
Since you're in .NET it seems like there would be service management APIs in the managed SDK, but I didn't see any service management API references there.
I just want to add something after the above answers, certainly you can create the Virtual Machines using Power Shell or C# and here is an example I found it might be interesting using the .Net API
http://code.msdn.microsoft.com/windowsazure/How-to-program-control-838bd90b
Currently there is only a REST API for creating Virtual Machines
This post shows an example of how to call the REST API in C# for creating a VM.
Remember that a Virtual Machine and a VMRole are different.
Apologies for not having seen this question earlier. The Microsoft Azure Management Libraries (MAML, for short) can provide this sort of .NET-based access to the Microsoft Azure management APIs. MAML is available as a series of NuGet packages, which were released officially just this week.
To accompany the release I've put out a blog post linking to a VS Extension I wrote for the //build/ conference. This extension provides a walk-thru via VS Project & Item templates, along with some code snippets, that do exactly what you're after - create a VM in Microsoft Azure from a Console Application.
I've written a few other posts on MAML that offer other pieces of guidance and information. Hope this helps!

Facebook C# SDK Azure documentation

I am about to emabark on a project that will use Azure and Facebook C# SDK. I was just wondering when will the documentation be available on the C# SDK website? I have no idea where to begin and would love some documentation/tutorials.
Thanks,
Rhonda
As you need some pointer about where to begin, I sure can give your some pointers but get ready for a time of adventure because you sure going to hit some hardtime. What you really need is to develop your project in two steps:
Create an ASP.NET (MVC?) Web application using FaceBook C# SDK
Convert this ASP.NET application to Web Role to deploy to Windows Azure
To start your development for 1) I would suggest following this Documentation:
http://csharpsdk.org/docs/web/
http://csharpsdk.org/docs/web/ajax-requests
I would also suggest to look SO for more assistance during your development when you hit errors as there are lots of solution discussed.
Finally when you come to 2) you can follow how Deploy asp.net application on windows azure..?
This documentation is in progress as of Feb. 11, 2012. We are working
on big improvements for the coming weeks.
Source: http://csharpsdk.org/docs/azure/
So yea, that's your answer.

Spreedly Integration .Net Web App

I'm thinking about integrating Spreedly into my webapp to handle the payments & subscriptions. It's a .Net MVC app, however I could do the payment form in .Net Web Forms if needs be.
I'm just looking through the Spreedly API documentation, and the examples appear to use curl commands which I am very unfamiliar with, e.g. example .
I've googled (and maybe I'm googling for the wrong thing) and while I get lots of websites giving me lots of different examples of curl commands, I am still unsure how to actually use them in the context of a .Net web page?
Any help/links/etc to enlighten me would be much appreciated :)
I've implemented a NuGet package that could help you....
You can also browse the code on GitHub to see how curl maps to HttpClient, for example...
Here's a question that discusses implementing a cURL request using a C# WebRequest -
cURL with user authentication in C#
Here's the .NET binding on the cURL website -
http://curl.haxx.se/libcurl/dotnet/
Finally, this Google search got me a sizable number of results, which seem to be relevant to what you're looking for -
http://www.google.com/search?hl=en&q=C%23+.NET+cURL

Communication between Windows Form Application and Web Page in C#

I am developing a windows based application using C#.
This should be used by the customer after some verification.
Every time they enter the details, the information should be validated in the server. And based on the response the windows-application should proceed further.
Could you please suggest me some examples or technologies ideal for this scenario?
I read through the documentations about WebClient and HttpWebRequest. But still I am not clear. Sorry I am an Embedded Systems Programmer. I haven't worked on Server related technologies.
Thanks for your help.
I would look at Windows Communication Foundation it is a service and messaging framework designed for exactly what you want to do.
a webservice would be a good solution.
look here for more information on creating a webservice:
http://www.codeproject.com/KB/webservices/myservice.aspx
then you can import your webservice like a reference to a class and use it in your clientside c# programm.
http://www.xefteri.com/articles/show.cfm?id=15
this article is for VB, but it shouldn't be a problem, the important thing is the referencing, which is Visual Studio specific and not VB specific.
I would look at a WCF service using a NetTcpBinding. Here is a good link:
http://msdn.microsoft.com/en-us/magazine/cc163394.aspx
I am a little unsure what your reference to a web page in the post title refers to.

Categories