bitmessage.network.PrivateKey.SendAsync C# (CSharp) 메소드

SendAsync() 개인적인 메소드

private SendAsync ( Bitmessage bitmessage ) : void
bitmessage Bitmessage
리턴 void
        internal void SendAsync(Bitmessage bitmessage)
        {
            LastPubkeySendTime = DateTime.UtcNow;
            SaveAsync(bitmessage.DB);
            new Task(() =>
                new Payload(Command, SentData).SaveAsync(bitmessage)
                ).Start();
        }

Usage Example

예제 #1
0
        public PrivateKey GeneratePrivateKey(string label = null, bool eighteenByteRipe = false, bool send = false, bool save = true)
        {
            var privateKey = new PrivateKey(label, eighteenByteRipe);
            if (save) privateKey.SaveAsync(DB).Wait();
            if (send) privateKey.SendAsync(this);

            lock (_lock4privateKeysCache)
                _privateKeysCache = null;

            return privateKey;
        }