Exemplo n.º 1
0
        /// <summary>
        /// Creates a new service with description at <paramref name="configURI"/> using the default context.
        /// </summary>
        /// <returns>Created service.</returns>
        /// <param name="configURI">Configuration URI.</param>
        public static ServiceImpl Create(string configURI)
        {
            ServiceImpl service = new ServiceImpl(Context.DefaultContext);

            Context.DefaultContext.StartServer(configURI, service.HandleNewClient);
            return(service);
        }
Exemplo n.º 2
0
 public void Init()
 {
     context        = new Context();
     service        = new ServiceImpl(context);
     connectionMock = new Mock <Connection>();
 }