예제 #1
0
 protected virtual void CreateSetup()
 {
     try
     {
         _setup = MvxSetup.Instance();
     }
     catch (Exception exception)
     {
         throw exception.MvxWrap("Failed to create setup instance");
     }
 }
예제 #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());
        }
예제 #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());
 }