Пример #1
0
        public MainModule(OpenTokService opentokService)
        {
            Get["/"] = _ =>
            {
                dynamic locals = new ExpandoObject();

                locals.ApiKey    = opentokService.OpenTok.ApiKey.ToString();
                locals.SessionId = opentokService.Session.Id;
                locals.Token     = opentokService.Session.GenerateToken();

                return(View["index", locals]);
            };
        }
Пример #2
0
        public MainModule(OpenTokService opentokService)
        {

            Get["/"] = _ =>
                {
                    dynamic locals = new ExpandoObject();

                    locals.Token = opentokService.Session.GenerateToken();
                    locals.ApiKey = opentokService.OpenTok.ApiKey.ToString();
                    locals.SessionId = opentokService.Session.Id;

                    return View["index", locals];
                };
        }