public DomainContext(CremaHost cremaHost) { this.CremaHost = cremaHost; this.CremaHost.Debug(Resources.Message_DomainContextInitialize); this.Dispatcher = new CremaDispatcher(this); this.BasePath = cremaHost.GetPath(CremaPath.Domains); this.CremaHost.Debug(Resources.Message_DomainContextIsCreated); }
public UserContext(CremaHost cremaHost) { this.CremaHost = cremaHost; this.CremaHost.Debug(Resources.Message_UserContextInitialize); this.remotePath = cremaHost.GetPath(CremaPath.RepositoryUsers); this.BasePath = cremaHost.GetPath(CremaPath.Users); this.Serializer = cremaHost.Serializer; this.Repository = new UserRepositoryHost(this, this.CremaHost.RepositoryProvider.CreateInstance(new RepositorySettings() { RemotePath = this.remotePath, RepositoryName = string.Empty, BasePath = this.BasePath, LogService = this.CremaHost })); this.Dispatcher = new CremaDispatcher(this); this.CremaHost.Debug(Resources.Message_UserContextIsCreated); }