public void Start()
        {
            ReplicationServiceEnvironment environment = new ReplicationServiceEnvironment()
            {
                SubscribersDistributer = new SubscribersDistributer(),
                ReplicatedObjectsSubsystem = new ReplicatedObjectsSubsystem()
            };

            ReplicationServiceEnvironment.Current = environment;

            _replicationServiceHost = new ServiceHost(typeof(ReplicationService));
            _replicationServiceHost.Faulted += OnUpdateServiceHostFaulted;

            try
            {
                _replicationServiceHost.Open();
            }
            catch (Exception ex)
            {
                EventLog.WriteEntry(ex.Message, EventLogEntryType.Information.ToString());
            }
        }
        public void Start()
        {
            ReplicationServiceEnvironment environment = new ReplicationServiceEnvironment()
            {
                SubscribersDistributer     = new SubscribersDistributer(),
                ReplicatedObjectsSubsystem = new ReplicatedObjectsSubsystem()
            };

            ReplicationServiceEnvironment.Current = environment;


            _replicationServiceHost          = new ServiceHost(typeof(ReplicationService));
            _replicationServiceHost.Faulted += OnUpdateServiceHostFaulted;

            try
            {
                _replicationServiceHost.Open();
            }
            catch (Exception ex)
            {
                EventLog.WriteEntry(ex.Message, EventLogEntryType.Information.ToString());
            }
        }
Exemple #3
0
 public ReplicationService(ReplicationServiceEnvironment environment, List <ReplicationInfo> replicationObjects)
 {
     SubscribersDistributer     = environment.SubscribersDistributer;
     ReplicatedObjectsSubsystem = environment.ReplicatedObjectsSubsystem;
 }
 public ReplicationService(ReplicationServiceEnvironment environment, List<ReplicationInfo> replicationObjects)
 {
     SubscribersDistributer = environment.SubscribersDistributer;
     ReplicatedObjectsSubsystem = environment.ReplicatedObjectsSubsystem;
 }