public void Init() { if (Instance != null) { throw new InvalidDataException("XmlSyncReplyHttpListenerBase.Instance has already been set"); } Instance = this; if (this.serviceManager != null) { serviceManager.Init(); Configure(serviceManager.Container); } else { Configure(null); } EndpointHost.SetOperationTypes( EndpointHost.Config.ServiceController.OperationTypes, EndpointHost.Config.ServiceController.AllOperationTypes ); var elapsed = DateTime.Now - this.startTime; log.InfoFormat("Initializing Application took {0}ms", elapsed.TotalMilliseconds); }