Client class for MeshService.
상속: MeshService
        /// <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;
            }
예제 #2
0
        /// <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;
            }
예제 #3
0
 /// <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;
     }