C# Class Microsoft.AspNet.SignalR.Samples.Hubs.ShapeShare.ShapeShare

Inheritance: Microsoft.AspNet.SignalR.Hubs.Hub
显示文件 Open project: SignalR/SignalR

Public Methods

Method Description
ChangeShape ( string id, int x, int y, int w, int h ) : void
ChangeUserName ( string currentUserName, string newUserName ) : void
CreateShape ( string type = "rectangle" ) : System.Threading.Tasks.Task
DeleteAllShapes ( ) : void
DeleteShape ( string id ) : void
GetShapes ( ) : IEnumerable
Join ( string userName ) : void

Private Methods

Method Description
FindShape ( string id ) : Shape

Method Details

ChangeShape() public method

public ChangeShape ( string id, int x, int y, int w, int h ) : void
id string
x int
y int
w int
h int
return void

ChangeUserName() public method

public ChangeUserName ( string currentUserName, string newUserName ) : void
currentUserName string
newUserName string
return void

CreateShape() public method

public CreateShape ( string type = "rectangle" ) : System.Threading.Tasks.Task
type string
return System.Threading.Tasks.Task

DeleteAllShapes() public method

public DeleteAllShapes ( ) : void
return void

DeleteShape() public method

public DeleteShape ( string id ) : void
id string
return void

GetShapes() public method

public GetShapes ( ) : IEnumerable
return IEnumerable

Join() public method

public Join ( string userName ) : void
userName string
return void