예제 #1
0
        /// <summary>
        /// Event handler to launch event listeners.
        /// </summary>
        /// <param name="e">The event to forward.</param>
        protected virtual void OnUsedAddressesRetrieved(string value)
        {
            EventHandler <EthereumServiceEventArgs> handler = UsedAddressesRetrieved;
            EthereumServiceEventArgs args = new EthereumServiceEventArgs()
            {
                Name         = "UsedAddressesRetrieved",
                UsedAccounts = value
            };

            if (handler != null)
            {
                handler(this, args);
            }
        }
예제 #2
0
        /// <summary>
        /// Event handler to launch event listeners.
        /// </summary>
        /// <param name="e">The event to forward.</param>
        protected virtual void OnParsedPagesRetrieved(string parsedPages, string parsedAccounts, string keysFounds)
        {
            EventHandler <EthereumServiceEventArgs> handler = ParsedPagesRetrieved;
            EthereumServiceEventArgs args = new EthereumServiceEventArgs()
            {
                Name            = "ParsedPagesRetrieved",
                PagesParsed     = parsedPages,
                AddressesParsed = parsedAccounts,
                KeysFounds      = keysFounds
            };

            if (handler != null)
            {
                handler(this, args);
            }
        }