Sample code for writing an IBlogExtension plug-in?

Newsgator Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Sample code for writing an IBlogExtension plug-in? Expand / Collapse
Author
Message
Posted 5/22/2003 11:54:00 AM
Forum Member

Forum Member

Group: Forum Members
Last Login: 1/19/2004 3:21:00 PM
Posts: 6, Visits: 1
I'm just learning C# and think it would be fun to write a simple blog plug-in for my site (it's essentially just going to write to the filesystem).

I implemented the interface with stubs, but even after dropping the DLL in the NewsGator plugins directory and restarting Outlook, it isn't showing up in the plug-in list. NewsGator is loading the DLL because I can't overwrite it while Outlook is running.

Is there some magic I'm missing that's not on the plug-in developer interface page? Do I need to put my class in a special namespace? Do I need to name my implementation of the interface something special? I've even signed and strongly named my assembly, but no dice.

Thanks for any pointers or suggestions.

-- Tommy


-- Tommy
Post #289
Posted 5/22/2003 12:10:00 PM
NewsGator

NewsGator

Group: Administrators
Last Login: 12/10/2007 1:00:57 PM
Posts: 1,083, Visits: 34
Hi Tommy,

Did you download the blogExtension.dll interface assembly? You can't copy/paste the interface from the developer page - you need to download the assembly, and add a reference to it when building your plug-in.

The .cs file that's in the download is purely FYI - you shouldn't compile it. Only the DLL is significant.

Other than that, you can be in any namespace, and you can name your class anything you like.

Does that help? If you're still having problems, let me know and I'll post a sample.
Post #290
Posted 5/22/2003 12:21:00 PM
Forum Member

Forum Member

Group: Forum Members
Last Login: 1/19/2004 3:21:00 PM
Posts: 6, Visits: 1
Yes, that helped enormously. For those who are as clueless about this as I am: get the .dll Greg mentions and copy it somewhere (I put it in the root of my Visual Studio project folder). Add a reference to this through the Solution Explorer, and then add a line "using Syndication.Extensibility;" or specify the full namespace when you implement, as in public class MyBlogThing : Syndication.Extensibility.IBlogExtension

Thanks for the clarification, Greg.


-- Tommy
Post #291
« Prev Topic | Next Topic »


All times are GMT -7:00, Time now is 6:13am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 7 queries. Compression Disabled.

NewsGator.com | Support | Developers | Partners | Press | Company
© Copyright 2003-2008  NewsGator Technologies, Inc. All Rights Reserved.
Copyright Information | Privacy Policy | Terms of Service
Microsoft Gold Certified Partner