static void RegisterTypes()
        {
            var container = new ServiceProviderContainer();

            container.DefaultRegister();
            container.RegisterType(typeof(IJsonSerializer), typeof(JsonNetSerializer));
            ContainerManager.Container = container;
        }
示例#2
0
        static void RegisterTypes()
        {
            var container = new ServiceProviderContainer();

            container.DefaultRegister();
            container.RegisterType(typeof(IJsonSerializer), typeof(JsonNetSerializer));
            container.RegisterType(typeof(VerificationCodeBase), typeof(SkiaSharpVerificationCode));
            ContainerManager.Container = container;
        }