protected virtual void CreateSetup()
 {
     try
     {
         _setup = MvxSetup.Instance();
     }
     catch (Exception exception)
     {
         throw exception.MvxWrap("Failed to create setup instance");
     }
 }
Beispiel #2
0
        public static void RegisterSetupType <TMvxSetup>(this object platformApplication, params Assembly[] assemblies)
            where TMvxSetup : MvxSetup, new()
        {
            if (platformApplication == null)
            {
                throw new ArgumentNullException(nameof(platformApplication));
            }

            MvxSetup.RegisterSetupType <TMvxSetup>(
                new[] { platformApplication.GetType().Assembly }.Union(assemblies ?? Array.Empty <Assembly>()).ToArray());
        }
Beispiel #3
0
 public static void RegisterSetupType <TMvxSetup>(this object platformApplication, params Assembly[] assemblies) where TMvxSetup : MvxSetup, new()
 {
     MvxSetup.RegisterSetupType <TMvxSetup>(new[] { platformApplication.GetType().Assembly }.Union(assemblies ?? new Assembly[] { }).ToArray());
 }