Exemple #1
0
        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);
                }
            }
        }
Exemple #2
0
 public Users(ServerContext context)
 {
     _context = context;
 }
Exemple #3
0
 public ServerFileSystem(ServerContext context)
 {
     _context = context;
     PrimeWorkspaceDirectory = GetPrimeDirectory();
 }
 public MessageTypeNameSerializationBinder(ServerContext context)
 {
     TypeCatalogue = new MessageTypeCatalogue(context.Extensions);
 }
Exemple #5
0
 public PrimeInstance(ServerContext context)
 {
     Context          = context;
     ExtensionManager = new ExtensionManager(context);
 }
Exemple #6
0
 public void Main(ServerContext context)
 {
     MessageServerInstance = new MessageServer(context);
 }
Exemple #7
0
 public PublicContext(ServerContext serverContext)
 {
     ServerContext = serverContext;
     Id            = "prime:public:context".GetObjectIdHashCode();
     I             = this;
 }