Ejemplo n.º 1
0
 /// <summary>
 /// Initializes the event listener.
 /// </summary>
 /// <param name="db"></param>
 /// <param name="address"></param>
 /// <param name="port"></param>
 /// <param name="parallel"></param>
 /// <param name="garbageHandling"></param>
 public void Initialize(IEventTemplateDB db
     , IPAddress address
     , int port
     , bool parallel
     , ListenerGarbageHandling garbageHandling)
 {
     TemplateDB = db;
     Address = address;
     Port = port;
     IsParallel = parallel;
     Initialize();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes the instance.
        /// </summary>
        /// <param name="db"></param>
        /// <param name="multicastAddress"></param>
        /// <param name="multicastPort"></param>
        /// <param name="parallel"></param>
        /// <param name="garbageHandling"></param>
        public void InitializeAll(IEventTemplateDB db
            , IPAddress multicastAddress
            , int multicastPort
            , bool parallel
            , ListenerGarbageHandling garbageHandling)
        {
            this.TraceData(TraceEventType.Verbose, () =>
            {
                return new object[] { String.Concat("MulticastEventListener Initializing"
                    , Environment.NewLine, "\twith multicastAddress = ", multicastAddress
                    , Environment.NewLine, "\tand multicastPort = ", multicastPort
                    , Environment.NewLine, "\tand parallel = ", parallel
                    , Environment.NewLine, "\tand garbageHandling = ", garbageHandling
                    ) };
            });

            TemplateDB = db;
            Address = multicastAddress;
            Port = multicastPort;
            IsParallel = parallel;
            Initialize();

            this.TraceData(TraceEventType.Verbose, "MulticastEventListener Initialized");
        }