当前位置: 首页>>代码示例>>C#>>正文


C# IScope.ToString方法代码示例

本文整理汇总了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);
			}
		}
开发者ID:Nicholi,项目名称:fluorinefx-mod,代码行数:13,代码来源:ApplicationAdapter.cs

示例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);
			}
		}
开发者ID:Nicholi,项目名称:fluorinefx-mod,代码行数:13,代码来源:ApplicationAdapter.cs

示例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;
		}
开发者ID:Nicholi,项目名称:fluorinefx-mod,代码行数:15,代码来源:ApplicationAdapter.cs

示例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;
		}
开发者ID:Nicholi,项目名称:fluorinefx-mod,代码行数:15,代码来源:ApplicationAdapter.cs

示例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);
			}
		}
开发者ID:Nicholi,项目名称:fluorinefx-mod,代码行数:12,代码来源:ApplicationAdapter.cs

示例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);
			}
		}
开发者ID:Nicholi,项目名称:fluorinefx-mod,代码行数:12,代码来源:ApplicationAdapter.cs

示例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;
		}
开发者ID:Nicholi,项目名称:fluorinefx-mod,代码行数:14,代码来源:ApplicationAdapter.cs

示例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;
		}
开发者ID:Nicholi,项目名称:fluorinefx-mod,代码行数:14,代码来源:ApplicationAdapter.cs


注:本文中的IScope.ToString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。