Option.ofObj Option. , Option. , , , Option.bind.
let authorize (ctx:DashboardContext) =
ctx.GetOwinEnvironment() |> OwinContext |> Option.ofObj
|> Option.bind (fun c -> c.Authentication.User |> Option.ofObj)
|> Option.map (fun user -> user.Identity.IsAuthenticated)
|> Option.defaultValue false
Option.bind Option<'a> , 'a Option<'a>. , "" a Some None.
, , , , , , , . Option.bind , .
, F # Authentication Identity . #, . F #, , , .
. . MaybeBuilder .