private static void LoadSerializarion(IDIContainer container) { container.RegisterType <ISerialization, NetSerialization>("EncryptionSerializer", TypeInstancingMode.Singleton); container.RegisterType <ISerialization, XmlSerialization>("DefaultSerializer", TypeInstancingMode.Singleton); }
private static void LoadSerializarion(IDIContainer container) { container.RegisterType<ISerialization, NetSerialization>("EncryptionSerializer", TypeInstancingMode.Singleton); container.RegisterType<ISerialization, XmlSerialization>("DefaultSerializer", TypeInstancingMode.Singleton); }
private static void LoadRNG(IDIContainer container) { container.RegisterType <Int32RNGGenerator>(RNGType.Int32.ToString(), TypeInstancingMode.Instance); container.RegisterType <Int64RNGGenerator>(RNGType.Int64.ToString(), TypeInstancingMode.Instance); }
private static void LoadRNG(IDIContainer container) { container.RegisterType<Int32RNGGenerator>(RNGType.Int32.ToString(), TypeInstancingMode.Instance); container.RegisterType<Int64RNGGenerator>(RNGType.Int64.ToString(), TypeInstancingMode.Instance); }