public static void RegisterAllNetXP(this IRegister cfg) { cfg.RegisterInstance(Options.Create(new PersistenPrivateKeyConfiguration())); cfg.RegisterInstance(Options.Create(new TCPOption())); cfg.RegisterNetXPStandard(); cfg.RegisterSerialization(); cfg.RegisterCryptography(); cfg.RegisterAuditory(); cfg.RegisterNetwork(); cfg.RegisterNetworkServices(); //Process cfg.Register <SystemInformation.ISystemInformation, SystemInformation.Implementations.SysInfo>(); }
public static void AddNetXPNetFrameworkRegisters(this IRegister cfg, IContainer container, string appSettingFile = null) { cfg.RegisterNetXPStandard(container, appSettingFile); cfg.RegisterSerialization(); cfg.RegisterCryptography(); cfg.RegisterNetwork(container, appSettingFile); cfg.RegisterAuditory(); //Cryptography cfg.Register <NetStandard.Cryptography.ISymetricCrypt, Symetric>(); cfg.Register <NetStandard.Cryptography.IAsymetricCrypt, AsymetricCryptWithRSACng>(); //SystemInfo cfg.Register <NetStandard.SystemInformation.ISystemInformation, NetStandard.SystemInformation.Implementations.SysInfo>(); cfg.Register <NetStandard.SystemInformation.IServiceInformer, ServiceInformerWindowsOnly>(); }