public ServiceChannel(ServiceHub hub, RosterTrackingService targetUriTracker) : base(hub.CustomerSession.AppFrontEnd.AppPlatform) { m_serviceHub = hub; Debug.Assert(targetUriTracker != null); m_tracker = targetUriTracker; }
private void StartupPrimaryChannel(AsyncTask task, object state) { task.DoOneStep( delegate() { m_primaryTracker = new RosterTrackingService(this.CustomerSession.AppFrontEnd, new TimeSpan(0, 0, 1)); m_primaryTracker.TargetUri = this.CustomerSession.AppFrontEnd.Endpoint.OwnerUri; m_primaryChannel = new ServiceChannel(this, m_customerTracker); m_primaryChannel.IsPrimaryServiceChannel = true; m_primaryChannel.BeginStartup( delegate(IAsyncResult ar) { task.DoFinalStep( delegate() { m_primaryChannel.EndStartup(ar); //Logger.Log(Logger.LogLevel.Info, "Started primary service channel(TCU)."); }); }, null); }); }
public ServiceHub(CustomerSession parent, RosterTrackingService tracker) : base(parent.AppFrontEnd.AppPlatform) { m_parent = parent; m_customerTracker = tracker; }