public App() { var container = Bootstraper.Bootstrap(); // The root page of your application MainPage = container.Resolve <LoginPage>(); }
private static int Main(string[] args) { GlobalContext.Properties["applicationName"] = "UberDeployer.ConsoleApp"; XmlConfigurator.Configure(); TextWriter outputWriter = Console.Out; try { Bootstraper.Bootstrap(); var commandDispatcher = new CommandDispatcher(outputWriter); commandDispatcher.DiscoverCommands(Assembly.GetExecutingAssembly()); if (args.Length == 0) { commandDispatcher.DisplayAvailableCommands(); return(1); } return(commandDispatcher.Dispatch(args)); } catch (Exception exc) { outputWriter.WriteLine(exc); return(1); } }
public LogzioTarget() { var bootstraper = new Bootstraper(); bootstraper.Bootstrap(); _shipper = bootstraper.Resolve <IShipper>(); _internalLogger = bootstraper.Resolve <IInternalLogger>(); }
protected override void OnServiceHostsStarting() { bool mockTeamCity = AppSettingsUtils.ReadAppSettingBool("MockTeamCity"); Bootstraper.Bootstrap(mockTeamCity); base.OnServiceHostsStarting(); }
// This method gets called by the runtime. Use this method to add services to the container. public IServiceProvider ConfigureServices(IServiceCollection services) { // pipe line middlware services IocConfig.Config(services, Configuration); // register services in structure map container return(Bootstraper.Bootstrap(services, settings)); }
private void Application_Startup(object sender, StartupEventArgs e) { var bootstrapper = new Bootstraper(); var conatiner = bootstrapper.Bootstrap(); var mainwindow = conatiner.Resolve <MainWindow>(); mainwindow.Show(); }
private void Application_Startup(object sender, StartupEventArgs e) { var bootstrap = new Bootstraper(); var container = bootstrap.Bootstrap(); var page1 = container.Resolve <Page1>(); this.MainWindow.Content = page1; this.MainWindow.Show(); }
public void Setup() { _dummy = new LogzioListenerDummy(); _dummy.Start(); var bootstraper = new Bootstraper(); bootstraper.Bootstrap(); _shipper = bootstraper.Resolve <IShipper>(); }
public static void Register(HttpConfiguration config) { // IoC... config.DependencyResolver = Bootstraper.Bootstrap(); config.Formatters.JsonFormatter.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver(); // Domain vs Model vs ViewModel mapper configuration... AutomapperInitializer.Initialize(); // Web API routes config.MapHttpAttributeRoutes(); config.Routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "{controller}/{id}", defaults: new { id = RouteParameter.Optional } ); }
static DeployTask() { Bootstraper.Bootstrap(); }
public void SetUp() { Bootstraper.Bootstrap(); }