C# 클래스 stubby.Stubby

The main stubby class whose instances host stubbed endpoints.
상속: IDisposable
파일 보기 프로젝트 열기: mrak/stubby4net

공개 메소드들

메소드 설명
Add ( stubby.Domain.Endpoint endpoint, uint &id ) : bool

Add a new endpoint configuration

Add ( IEnumerable endpoints, IList &ids ) : bool

Add many new endpoint configurations

Delete ( uint id ) : bool

Remove an endpoint by id

DeleteAll ( ) : void

Remove all configured endpoints from stubby

Dispose ( ) : void
Find ( stubby.Domain.Request request ) : stubby.Domain.Response

Find an endpoint by it's matching Request

Get ( uint id ) : stubby.Domain.Endpoint

Get an endpoint back by id

GetAll ( ) : IList

Get a listing of all of stubby's configured endpoints

Replace ( Endpoint>.IEnumerable endpoints ) : bool

Swap out the configuration of several endpoints

Replace ( uint id, stubby.Domain.Endpoint endpoint ) : bool

Swap out the configuration of one of the endpoints

Start ( ) : void

Start stubby's services

Stop ( ) : void

Stop stubby's services

Stubby ( ) : System

Construct stubby with default parameters.

Stubby ( IArguments arguments ) : System

Costruct with specific options.

비공개 메소드들

메소드 설명
LoadEndpoints ( ) : void
OnDatafileChange ( object sender, FileSystemEventArgs e ) : void
StartPortals ( ) : void

메소드 상세

Add() 공개 메소드

Add a new endpoint configuration
public Add ( stubby.Domain.Endpoint endpoint, uint &id ) : bool
endpoint stubby.Domain.Endpoint The new endpoint data
id uint The new generated id, for use with Replace/Delete
리턴 bool

Add() 공개 메소드

Add many new endpoint configurations
public Add ( IEnumerable endpoints, IList &ids ) : bool
endpoints IEnumerable The new endpoints data
ids IList The new generated ids of the inserted endpoints
리턴 bool

Delete() 공개 메소드

Remove an endpoint by id
public Delete ( uint id ) : bool
id uint The id as returned by Add(..) or the Admin portal listing.
리턴 bool

DeleteAll() 공개 메소드

Remove all configured endpoints from stubby
public DeleteAll ( ) : void
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Find() 공개 메소드

Find an endpoint by it's matching Request
public Find ( stubby.Domain.Request request ) : stubby.Domain.Response
request stubby.Domain.Request The signature of the request to find by
리턴 stubby.Domain.Response

Get() 공개 메소드

Get an endpoint back by id
public Get ( uint id ) : stubby.Domain.Endpoint
id uint The id of the endpoint to retrieve
리턴 stubby.Domain.Endpoint

GetAll() 공개 메소드

Get a listing of all of stubby's configured endpoints
public GetAll ( ) : IList
리턴 IList

Replace() 공개 메소드

Swap out the configuration of several endpoints
public Replace ( Endpoint>.IEnumerable endpoints ) : bool
endpoints Endpoint>.IEnumerable An <id, endpoint> Map of endpoints to swap out
리턴 bool

Replace() 공개 메소드

Swap out the configuration of one of the endpoints
public Replace ( uint id, stubby.Domain.Endpoint endpoint ) : bool
id uint The id of the endpoint to replace
endpoint stubby.Domain.Endpoint The new endpoint data
리턴 bool

Start() 공개 메소드

Start stubby's services
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Stop stubby's services
public Stop ( ) : void
리턴 void

Stubby() 공개 메소드

Construct stubby with default parameters.
public Stubby ( ) : System
리턴 System

Stubby() 공개 메소드

Costruct with specific options.
public Stubby ( IArguments arguments ) : System
arguments IArguments The collection of options used by stubby.
리턴 System