/// <summary> /// Register the Service Property as IPC Server /// </summary> private void RegisterServer() { Repeater = new DataEventRepeator(); IpcServerChannel channel = new IpcServerChannel("NetOffice.SampleChannel"); ChannelServices.RegisterChannel(channel, true); RemotingConfiguration.RegisterWellKnownServiceType( typeof(WebTranslationService), "NetOffice.WebTranslationService.DataService", WellKnownObjectMode.Singleton); Service = new WebTranslationService(); Repeater.Translation += new TranslationEventHandler(ServiceOnTranslation); Service.AddEventRepeater(Repeater); }
public void AddEventRepeater(DataEventRepeator repeater) { Reapters.Add(repeater); }