~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/mono-addins/Samples/WriterService/WriterServiceHost/Main.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
using System;
 
2
using WriterService;
 
3
using Mono.Addins;
 
4
 
 
5
namespace SampleAddinHost
 
6
{
 
7
        class MainClass
 
8
        {
 
9
                public static void Main(string[] args)
 
10
                {
 
11
                        AddinManager.Initialize (".");
 
12
                        AddinManager.Registry.Update (null);
 
13
                        
 
14
                        Console.WriteLine ("Normal writers:");
 
15
                        WriterManager manager = new WriterManager (new string[0]);
 
16
                        foreach (IWriter w in manager.GetWriters ())
 
17
                                Console.WriteLine (w.Write ());
 
18
                        
 
19
                        Console.WriteLine ("Including debug writers:");
 
20
                        WriterManager debugManager = new WriterManager (new string[] { "debug" });
 
21
                        foreach (IWriter w in debugManager.GetWriters ())
 
22
                                Console.WriteLine (w.Write ());
 
23
                }
 
24
        }
 
25
}
 
 
b'\\ No newline at end of file'