Пример #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);
        }
Пример #2
0
 public void Init()
 {
     context        = new Context();
     service        = new ServiceImpl(context);
     connectionMock = new Mock <Connection>();
 }