Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented C# friendly API #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

xperiandri
Copy link
Contributor

Merge after #18

@xperiandri
Copy link
Contributor Author

@Tarmil any remarks?

open System

[<AttributeUsage(AttributeTargets.Parameter ||| AttributeTargets.Field)>]
type internal TimeSpanConstantAttribute(miliseconds) =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing this attribute is supposed to provide the default value for an optional parameter, but I can't get it to work on toy examples, nor find any documentation about using custom operators for this.

this.ServiceProvider.GetService<Watcher>().Start()
let urlPath = defaultArg urlPath HotReloadSettings.Default.Url
let urlPath = urlPath
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might as well remove this line altogether.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants