public UserContext(ServerContext context, ObjectId id, string username) { ServerContext = context; Id = id; Token = id.ToString(); Username = username; var messengers = context.Types.ImplementInstancesUninitialised <IUserContextMessenger>().ToList(); Messengers = new List <IUserContextMessenger>(); foreach (var m in messengers) { try { Messengers.Add(m.GetInstance(this)); } catch (Exception e) { Logging.I.DefaultLogger.Fatal(e.Message); } } }
public Users(ServerContext context) { _context = context; }
public ServerFileSystem(ServerContext context) { _context = context; PrimeWorkspaceDirectory = GetPrimeDirectory(); }
public MessageTypeNameSerializationBinder(ServerContext context) { TypeCatalogue = new MessageTypeCatalogue(context.Extensions); }
public PrimeInstance(ServerContext context) { Context = context; ExtensionManager = new ExtensionManager(context); }
public void Main(ServerContext context) { MessageServerInstance = new MessageServer(context); }
public PublicContext(ServerContext serverContext) { ServerContext = serverContext; Id = "prime:public:context".GetObjectIdHashCode(); I = this; }