/// <summary> /// Return a MeshService object for the named portal service. /// </summary> /// <param name="Account">The account to get.</param> /// <param name="Service">The service to get the service from.</param> /// <returns>The service instance</returns> public override MeshService GetService(string Service, string Account) { Session = new DebugLocalSession(MeshServiceHost, ServiceName, Account); Session.Traces = Traces; MeshServiceClient = new MeshServiceClient(Session); // Create a new dispatch client MeshServiceHost.Service = new PublicMeshService(MeshServiceHost, Session); return MeshServiceClient; }
/// <summary> /// Return a MeshService object for the named portal service. /// </summary> /// <param name="Account">The account to get.</param> /// <param name="Service">The service to get the service from.</param> /// <returns>The service instance</returns> public override MeshService GetService(string Service, string Account) { var URI = JPCProvider.WellKnownToURI(Service, MeshService.WellKnown, MeshService.Discovery, false, true); var Session = new WebRemoteSession(URI, Service, Account); MeshServiceClient = new MeshServiceClient(Session); return MeshServiceClient; }
/// <summary> /// Return a MeshService object for the named portal service. /// </summary> /// <param name="Account">The account to get.</param> /// <param name="Service">The service to get the service from.</param> /// <returns>The service instance</returns> public override MeshService GetService(string Service, string Account) { var Session = new LocalRemoteSession(MeshServiceHost, ServiceName, Account); MeshServiceClient = new MeshServiceClient(Session); return MeshServiceClient; }