Ejemplo n.º 1
0
        public void ConfigureServices(XamarinHostBuilderContext ctx, IServiceCollection services)
        {
            try
            {
                _methods.ConfigureServicesDelegate(ctx, services);
            }
            catch (Exception ex)
            {
                if (ex is TargetInvocationException)
                {
                    ExceptionDispatchInfo.Capture(ex.InnerException).Throw();
                }

                throw;
            }
        }
Ejemplo n.º 2
0
 public void ConfigureServices(XamarinHostBuilderContext context)
 {
     GlobalHasBeenConfigured = true;
 }
Ejemplo n.º 3
0
 public void ConfigureServices(XamarinHostBuilderContext ctx, IServiceCollection services)
 {
     GlobalHasBeenConfigured = true;
     HasBeenConfigured       = true;
 }
Ejemplo n.º 4
0
 public void ConfigureServices(XamarinHostBuilderContext context, IServiceCollection services, string test)
 {
     GlobalHasBeenConfigured = true;
 }
Ejemplo n.º 5
0
 public void ConfigureServices(XamarinHostBuilderContext ctx, IServiceCollection services)
 {
     services.AddTransient(typeof(MainPage));
 }