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]); }; }
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]; }; }