This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ApplicationManifest> | |
... | |
<ServiceManifestImport> | |
<ServiceManifestRef ServiceManifestName="SERVICENAME" ServiceManifestVersion="1.0.0" /> | |
<Policies> | |
<EndpointBindingPolicy CertificateRef="MyCertificateName" EndpointRef="ServiceEndpoint" /> | |
</Policies> | |
</ServiceManifestImport> | |
... | |
<Certificates> |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'FsAutoComplete.Suave.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. | |
'FsAutoComplete.Suave.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'D:\Programowanie\Projekty\Ionide\FsAutoComplete\src\FsAutoComplete.Suave\bin\Debug\FsAutoComplete.Suave.exe'. Symbols loaded. | |
'FsAutoComplete.Suave.exe' (CLR v4.0.30319: FsAutoComplete.Suave.exe): Loaded 'D:\Programowanie\Projekty\Ionide\FsAutoComplete\src\FsAutoComplete.Suave\bin\Debug\FSharp.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. | |
'FsAutoComplete.Suave.exe' (CLR v4.0.30319: FsAutoComplete.Suave.exe): Loaded 'D:\Programowanie\Projekty\Ionide\FsAutoComplete\src\FsAutoComplete.Suave\bin\Debug\Suave.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. | |
'FsAutoComplete.Suave.ex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Server | |
open Saturn | |
open Config | |
let endpointPipe = pipeline { | |
plug head | |
plug requestId | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Users | |
open Saturn | |
open Giraffe | |
open System.Security.Claims | |
let matchUpUsers : HttpHandler = fun next ctx -> | |
// A real implementation would match up user identities with something stored in a database | |
let isAdmin = | |
ctx.User.Claims |> Seq.exists (fun claim -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Router | |
open Saturn | |
open Giraffe.Core | |
open Giraffe.ResponseWriters | |
open Users | |
let browser = pipeline { | |
plug acceptHtml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module UserViews | |
open Giraffe.GiraffeViewEngine | |
module AdminPage = | |
let view = [ | |
h1 [] [rawText "I'm admin"] | |
] | |
let layout = App.layout view |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let rec visitExpr memberCallHandler (e:FSharpExpr) = | |
match e with | |
| BasicPatterns.AddressOf(lvalueExpr) -> | |
visitExpr memberCallHandler lvalueExpr | |
| BasicPatterns.AddressSet(lvalueExpr, rvalueExpr) -> | |
visitExpr memberCallHandler lvalueExpr; visitExpr memberCallHandler rvalueExpr | |
| BasicPatterns.Application(funcExpr, typeArgs, argExprs) -> | |
visitExpr memberCallHandler funcExpr; visitExprs memberCallHandler argExprs | |
| BasicPatterns.Call(objExprOpt, memberOrFunc, typeArgs1, typeArgs2, argExprs) -> | |
memberCallHandler e.Range memberOrFunc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[<Analyzer>] | |
let optionValueAnalyzer : Analyzer = | |
fun ctx -> | |
let state = ResizeArray<range>() | |
let handler (range: range) (m: FSharpMemberOrFunctionOrValue) = | |
let name = String.Join(".", m.DeclaringEntity.Value.FullName, m.DisplayName) | |
if name = "Microsoft.FSharp.Core.FSharpOption`1.Value" then | |
state.Add range | |
ctx.TypedTree.Declarations |> List.iter (visitDeclaration handler) | |
state |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// [ Analyzers Group ] | |
group Analyzers | |
source https://api.nuget.org/v3/index.json | |
nuget FSharp.Analyzers.Sample 1.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Learn more about F# at http://fsharp.org | |
open System | |
let x = None | |
[<EntryPoint>] | |
let main argv = | |
x.Value | |
printfn "Hello World from F#!" |
OlderNewer