LockSystem

Overview

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island
  • Namespace: go.golang.org.x.net.webdav
  • Platforms: .NET, .NET Standard 2.0, Island

Required Methods


Confirm

 

method Confirm(now: Time; name0: string; name1: string; params conditions: array of Condition): tuple of (release: Action, err: error)

 

(Action release, error err) Confirm(Time now, string name0, string name1, params Condition[] conditions)

 

func Confirm(_ now: Time, _ name0: string, _ name1: string, _ conditions: Condition...) -> (release:Action, err:error)

 

func Confirm(now Time, name0 string, name1 string, conditions []Condition) (release Action, err error)

 

Function Confirm(now As Time, name0 As string, name1 As string, ParamArray conditions As Condition()) As Tuple (Of release:=Action, err:=error)

Parameters:

  • now:
  • name0:
  • name1:
  • conditions:

Create

 

method Create(now: Time; details: LockDetails): tuple of (token: string, err: error)

 

(string token, error err) Create(Time now, LockDetails details)

 

func Create(_ now: Time, _ details: LockDetails) -> (token:string, err:error)

 

func Create(now Time, details LockDetails) (token string, err error)

 

Function Create(now As Time, details As LockDetails) As Tuple (Of token:=string, err:=error)

Parameters:

  • now:
  • details:

Refresh

 

// .NET, Island
method Refresh(now: Time; token: string; duration: Duration): tuple of (LockDetails, error)
// .NET Standard 2.0
method Refresh(now: Time; token: string; duration: Duration): ValueTuple<LockDetails, error>

 

// .NET, Island
(LockDetails, error) Refresh(Time now, string token, Duration duration)
// .NET Standard 2.0
ValueTuple<LockDetails, error> Refresh(Time now, string token, Duration duration)

 

// .NET, Island
func Refresh(_ now: Time, _ token: string, _ duration: Duration) -> (LockDetails, error)
// .NET Standard 2.0
func Refresh(_ now: Time, _ token: string, _ duration: Duration) -> ValueTuple<LockDetails, error>

 

// .NET, Island
func Refresh(now Time, token string, duration Duration) (LockDetails, error)
// .NET Standard 2.0
func Refresh(now Time, token string, duration Duration) ValueTuple<LockDetails, error>

 

// .NET, Island
Function Refresh(now As Time, token As string, duration As Duration) As Tuple (Of LockDetails, error)
// .NET Standard 2.0
Function Refresh(now As Time, token As string, duration As Duration) As ValueTuple<LockDetails, error>

Parameters:

  • now:
  • token:
  • duration:

Unlock

 

method Unlock(now: Time; token: string): error

 

error Unlock(Time now, string token)

 

func Unlock(_ now: Time, _ token: string) -> error

 

func Unlock(now Time, token string) error

 

Function Unlock(now As Time, token As string) As error

Parameters:

  • now:
  • token: