コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DkimSigningRoutingAgent"/> class.
        /// </summary>
        /// <param name="dkimSigner">The object that knows how to sign messages.</param>
        public DkimSigningRoutingAgent()
        {
            Logger.LogDebug("Initializing DkimSigner");
            Settings config = new Settings();
            config.InitHeadersToSign();

            this.dkimSigner = new DkimSigner();

            this.LoadSettings();
            this.WatchSettings();

            this.OnCategorizedMessage += this.WhenMessageCategorized;
            Logger.LogDebug("DkimSigner initiallized");
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DkimSigningRoutingAgentFactory"/> class.
        /// </summary>
        public DkimSigningRoutingAgentFactory()
        {
            Logger.LogDebug("Initializing DkimSigner Service");

            /*Logger.LogDebug("Waiting for debugger");
            while (!System.Diagnostics.Debugger.IsAttached)
                System.Threading.Thread.Sleep(100);
            Logger.LogDebug("Debugger connected");*/

            Settings config = new Settings();
            config.InitHeadersToSign();

            dkimSigner = new DkimSigner();

            LoadSettings();
            WatchSettings();
        }
コード例 #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DkimSigningRoutingAgentFactory"/> class.
        /// </summary>
        public DkimSigningRoutingAgentFactory()
        {
            Logger.LogDebug("Initializing DkimSigner Service");

            /*Logger.LogDebug("Waiting for debugger");
             * while (!System.Diagnostics.Debugger.IsAttached)
             *  System.Threading.Thread.Sleep(100);
             * Logger.LogDebug("Debugger connected");*/

            Settings config = new Settings();

            config.InitHeadersToSign();

            dkimSigner = new DkimSigner();

            LoadSettings();
            WatchSettings();
        }
コード例 #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DkimSigningRoutingAgent"/> class.
        /// </summary>
        /// <param name="dkimSigner">The object that knows how to sign messages.</param>
        ///
        public DkimSigningRoutingAgent(DkimSigner dkimSigner)
        {
            this.dkimSigner = dkimSigner;

            OnCategorizedMessage += WhenMessageCategorized;
        }
コード例 #5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DkimSigningRoutingAgent"/> class.
        /// </summary>
        /// <param name="dkimSigner">The object that knows how to sign messages.</param>
        /// 
        public DkimSigningRoutingAgent(DkimSigner dkimSigner)
        {
            this.dkimSigner = dkimSigner;

            OnCategorizedMessage += WhenMessageCategorized;
        }