This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Bootstrap | |
| { | |
| using Autofac; | |
| using Autofac.Builder; | |
| using System.Reflection; | |
| public static class AutofacBootstrap | |
| { | |
| public static IContainer BootstrapIoC() | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class DocumentStream | |
| { | |
| public DocumentStream(ISeparationStrategy separator, IPageStream pageStream) | |
| { | |
| // ... | |
| } | |
| public DocumentStream(ISeparationStrategy separator, IEnumerable<IPage> pageList) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| interface IComparisonWindow { /* ... */ } | |
| class ComparisonWindow : IComparisonWindow { /* ... */ } | |
| enum EComparisonSide | |
| { | |
| Left, | |
| Right | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public partial class FolderTransformService : ServiceBase | |
| { | |
| public FolderTransformService() | |
| { | |
| InitializeComponent(); | |
| } | |
| protected override void OnStart(String[] args) | |
| { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static class Program | |
| { | |
| /// <summary> | |
| /// The main entry point for the application. | |
| /// </summary> | |
| static void Main() | |
| { | |
| ServiceBase[] ServicesToRun; | |
| ServicesToRun = new ServiceBase[] | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| internal class InstallBootstrapper | |
| { | |
| public IContainer Build() | |
| { | |
| var builder = new ContainerBuilder(); | |
| return builder.Build(); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Configuration.Install; | |
| [RunInstaller(true)] | |
| public class ProjectInstaller : Installer | |
| { | |
| public ProjectInstaller() | |
| { | |
| var bootstrapper = new InstallBootstrapper(); | |
| var container = bootstrapper.Build(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Configuration.Install; | |
| using System.ServiceProcess; | |
| namespace HelloSvc.Services | |
| { | |
| internal class GreetServiceInstaller : ServiceInstaller | |
| { | |
| public GreetServiceInstaller() | |
| : base() | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.ServiceProcess; | |
| using System.Configuration.Install; | |
| using Autofac; | |
| namespace HelloSvc | |
| { | |
| using Install; | |
| internal class InstallBootstrapper |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.ServiceProcess; | |
| using Autofac; | |
| namespace HelloSvc | |
| { | |
| public static class Program | |
| { | |
| public static void Main(String[] args) | |
| { |
OlderNewer