コード例 #1
0
ファイル: InstanceCrypto.cs プロジェクト: ztcyun/AppServer
        public static DIHelper AddInstanceCryptoService(this DIHelper services)
        {
            services.TryAddSingleton <InstanceCrypto>();

            return(services
                   .AddMachinePseudoKeysService());
        }
コード例 #2
0
 public static DIHelper AddSignatureService(this DIHelper services)
 {
     services.TryAddSingleton <Signature>();
     return(services.AddMachinePseudoKeysService());
 }
コード例 #3
0
ファイル: PasswordHasher.cs プロジェクト: ztcyun/AppServer
        public static DIHelper AddPasswordHasherService(this DIHelper services)
        {
            services.TryAddSingleton <PasswordHasher>();

            return(services.AddMachinePseudoKeysService());
        }