Beispiel #1
0
        public static ILifecycle Create(RpcEndPoint endPoint, IAccountLoginService accountLoginService)
        {
            var port       = new ServerPort(endPoint.Host, endPoint.Port, ServerCredentials.Insecure);
            var controller = new RpcServiceController(port);

            controller.RegisterService(token => AccountAuthentication.BindService(new AccountAuthenticationService(accountLoginService, token)));
            return(controller);
        }