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