virla wrote:1] If I require Http responce in my Application which is written in C# than how will i get it ,If possible please pprovide me some example code for that.
To make HTTP requests (and receive HTTP responses
) in C# you can use the System.Net.WebClient Class.
This page contains examples: http://msdn.microsoft.com/en-us/library/system.net.webclient(v=vs.80).aspx
virla wrote:2] I want to create C# base channel hook by that My application directly et new feed data so please guide me on that and if possible provide me example code for that.
This is a bare-bones example that really doesn't do anything useful, It's using the ini-parser
library to parse the INI file that Awasu provides. It's coded to be called from Awasu "ConsolidatedNewFeedItems
" event, so it's looking for INI file sections that start with "NewFeedItem
Code: Select all
enum ExitCode : int
Success = 0,
MissingArguments = 1,
InvalidIniFile = 2,
UnknownError = 10
static void Main(string args)
// Exit with error message if an INI file path wasn't passed
if (args.Length == 0)
System.Console.WriteLine("Error: INI file must be passed as first argument.");
FileIniDataParser parser = new FileIniDataParser();
data = parser.LoadFile(args);
//Iterate through all the sections
foreach (SectionData section in data.Sections)
// Do something interesting here.
// These three lines are not very interesting.
Console.WriteLine("\t" + section.Keys["ItemTitle"]);
Console.WriteLine("\t" + section.Keys["PlainTextDescription"]);
System.Console.WriteLine("Error: Invalid INI file or path.");
virla wrote:3] How channel hook will inform or notify to my application written in c# regarding new feed available on subscribed channel.
That's something only you can answer.
What is your application? A GUI-based EXE? A console-based EXE? A web application?
A Channel hook can call virtually any other process: SOAP, REST, COM, etc.
How is your application callable?
What are you trying to accomplish?