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