本文整理汇总了C#中IScope.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# IScope.ToString方法的具体用法?C# IScope.ToString怎么用?C# IScope.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IScope
的用法示例。
在下文中一共展示了IScope.ToString方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RoomLeave
/// <summary>
/// Handler method. Called every time client leaves room scope.
/// </summary>
/// <param name="client">Client object that left.</param>
/// <param name="room">Room scope.</param>
public virtual void RoomLeave(IClient client, IScope room)
{
log.Debug(__Res.GetString(__Res.AppAdapter_RoomLeave, client.ToString(), room.ToString()));
foreach(IApplication listener in _listeners)
{
listener.OnRoomLeave(client, room);
}
}
示例2: AppLeave
/// <summary>
/// Handler method. Called every time client leaves application scope.
/// </summary>
/// <param name="client">Client object that left.</param>
/// <param name="application">Application scope.</param>
public virtual void AppLeave(IClient client, IScope application)
{
log.Debug(__Res.GetString(__Res.AppAdapter_AppLeave, client.ToString(), application.ToString()));
foreach(IApplication listener in _listeners)
{
listener.OnAppLeave(client, application);
}
}
示例3: RoomJoin
/// <summary>
/// Handler method. Called every time client joins room scope.
/// </summary>
/// <param name="client">Client object.</param>
/// <param name="room">Room scope.</param>
/// <returns>true if join is successful, false otherwise.</returns>
public virtual bool RoomJoin(IClient client, IScope room)
{
log.Debug(__Res.GetString(__Res.AppAdapter_RoomJoin, client.ToString(), room.ToString()));
foreach(IApplication listener in _listeners)
{
listener.OnRoomJoin(client, room);
}
return true;
}
示例4: AppJoin
/// <summary>
/// Handler method. Called every time client joins application scope.
/// </summary>
/// <param name="client">Client object.</param>
/// <param name="application">Application scope.</param>
/// <returns>true if join is successful, false otherwise.</returns>
public virtual bool AppJoin(IClient client, IScope application)
{
log.Debug(__Res.GetString(__Res.AppAdapter_AppJoin, client.ToString(), application.ToString()));
foreach(IApplication listener in _listeners)
{
listener.OnAppJoin(client, application);
}
return true;
}
示例5: RoomStop
/// <summary>
/// Handler method. Called when a room scope is stopped.
/// </summary>
/// <param name="room">Room scope.</param>
public virtual void RoomStop(IScope room)
{
log.Debug(__Res.GetString(__Res.AppAdapter_RoomStop, room.ToString()));
foreach(IApplication listener in _listeners)
{
listener.OnRoomStop(room);
}
}
示例6: AppStop
/// <summary>
/// Handler method. Called when an application scope is stopped.
/// </summary>
/// <param name="application">Application scope.</param>
public virtual void AppStop(IScope application)
{
log.Debug(__Res.GetString(__Res.AppAdapter_AppStop, application.ToString()));
foreach(IApplication listener in _listeners)
{
listener.OnAppStop(application);
}
}
示例7: RoomStart
/// <summary>
/// Handler method. Called when a room scope is started.
/// </summary>
/// <param name="room">Room scope.</param>
/// <returns>true if started successful, false otherwise.</returns>
public virtual bool RoomStart(IScope room)
{
log.Debug(__Res.GetString(__Res.AppAdapter_RoomStart, room.ToString()));
foreach(IApplication listener in _listeners)
{
listener.OnRoomStart(room);
}
return true;
}
示例8: AppStart
/// <summary>
/// Handler method. Called when an application scope is started.
/// </summary>
/// <param name="application">Application scope.</param>
/// <returns>true if started successful, false otherwise.</returns>
public virtual bool AppStart(IScope application)
{
log.Debug(__Res.GetString(__Res.AppAdapter_AppStart, application.ToString()));
foreach(IApplication listener in _listeners)
{
listener.OnAppStart(application);
}
return true;
}