Example #1
0
 /// <summary>
 /// Initialize sesssions.
 /// </summary>
 /// <param name="application">The application.</param>
 /// <param name="sessionId">The session id.</param>
 /// <returns></returns>
 protected virtual internal DextopConfig Initialize(DextopApplication application, String sessionId)
 {
     SessionId         = sessionId;
     DextopApplication = application;
     Context           = new DextopContext
     {
         //Application = session.DextopApplication,
         ModelManager = DextopApplication.ModelManager,
         Session      = this,
     };
     RegisterDependencies();
     ExtendSession();
     return(InitRemoting());
 }
Example #2
0
		/// <summary>
		/// Initialize sesssions.
		/// </summary>
		/// <param name="application">The application.</param>
		/// <param name="sessionId">The session id.</param>
		/// <returns></returns>
		protected virtual internal DextopConfig Initialize(DextopApplication application, String sessionId)
		{
			SessionId = sessionId;
			DextopApplication = application;
			Context = new DextopContext
			{
				//Application = session.DextopApplication,
				ModelManager = DextopApplication.ModelManager,
				Session = this,
			};
			RegisterDependencies();
			ExtendSession();
			return InitRemoting();
		}
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DextopRemote"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <param name="remoteId">The remote id.</param>
 /// <param name="subRemote">if set to <c>true</c> [sub remote].</param>
 public DextopRemote(DextopContext context, String remoteId, bool subRemote)
 {
     Context           = context;
     RemoteId          = remoteId;
     IsClientInitiated = subRemote;
 }
Example #4
0
		/// <summary>
		/// Initializes a new instance of the <see cref="DextopRemote"/> class.
		/// </summary>
		/// <param name="context">The context.</param>
		/// <param name="remoteId">The remote id.</param>
		/// <param name="subRemote">if set to <c>true</c> [sub remote].</param>
        public DextopRemote(DextopContext context, String remoteId, bool subRemote)
        {
            Context = context;
            RemoteId = remoteId;
            IsClientInitiated = subRemote;
        }