~ubuntu-branches/ubuntu/trusty/mono-addins/trusty-proposed

« back to all changes in this revision

Viewing changes to Samples/WriterServiceHost/Main.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-04-25 11:11:33 UTC
  • mfrom: (4.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20110425111133-t05u5p7o5fxx70fu
Tags: 0.6-2
Upload to Unstable

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'