コード例 #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;
            }
        }
コード例 #2
0
 public void ConfigureServices(XamarinHostBuilderContext context)
 {
     GlobalHasBeenConfigured = true;
 }
コード例 #3
0
 public void ConfigureServices(XamarinHostBuilderContext ctx, IServiceCollection services)
 {
     GlobalHasBeenConfigured = true;
     HasBeenConfigured       = true;
 }
コード例 #4
0
 public void ConfigureServices(XamarinHostBuilderContext context, IServiceCollection services, string test)
 {
     GlobalHasBeenConfigured = true;
 }
コード例 #5
0
 public void ConfigureServices(XamarinHostBuilderContext ctx, IServiceCollection services)
 {
     services.AddTransient(typeof(MainPage));
 }