MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffeGymUiServiceHost.cs
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.ServiceModel;
5using System.Text;
6using System.Threading.Tasks;
7
8namespace MyCaffe.gym
9{
13 public class MyCaffeGymUiServiceHost : ServiceHost
14 {
20 public MyCaffeGymUiServiceHost(int nMaxBuffer = 2147483647)
21 : base(typeof(MyCaffeGymUiService), new Uri[] { new Uri("net.pipe://localhost/MyCaffeGym") })
22 {
23 NetNamedPipeBinding binding = new NetNamedPipeBinding();
24 binding.MaxReceivedMessageSize = nMaxBuffer;
25 binding.MaxBufferSize = nMaxBuffer;
26 binding.MaxBufferPoolSize = nMaxBuffer;
27
28 AddServiceEndpoint(typeof(IXMyCaffeGymUiService), binding, "gymui");
29 }
30 }
31}
The MyCaffeGymUiServiceHost provides the hosting service that listens for users of the user interface...
MyCaffeGymUiServiceHost(int nMaxBuffer=2147483647)
The constructor.
The MyCaffeGymUiService provides the service used to show the Gym visualizations.
The IXMYCaffeGymUiService interface provides access to the MyCaffeGymUiService used to display the vi...
The MyCaffe.gym namespace contains all classes related to the Gym's supported by MyCaffe.