public ClientToChatServerHeartbeatThread(ConversationFactory factory)
 {
     Factory = factory;
     isRunning = true;
     Thread _HeartbeatThread = new Thread(Run);
     _HeartbeatThread.Start();
 }
        public ChatToRegistryServerHeartbeatThread(ConversationFactory factory)
        {
            Factory = factory;
            Thread _HeartbeatThread = new Thread(Run);

            _HeartbeatThread.Start();
        }
Exemplo n.º 3
0
        public HeartbeatThread(ConversationFactory factory)
        {
            Factory = factory;
            Thread _HeartbeatThread = new Thread(Run);

            _HeartbeatThread.Start();
        }
        public UpdateServersListThread(ConversationFactory f)
        {
            factory = f;
            Thread _ServerListUpdate = new Thread(Run);

            _ServerListUpdate.Start();
        }
Exemplo n.º 5
0
        public RegistryServerProgram()
        {
            _running = true;
            _factory = new RegistryServerConversationFactory();
            StartCommSubsystem(_factory, 1024, 1024);

            ReportServerCount();
        }
Exemplo n.º 6
0
        public GetNewMessagesThread(ConversationFactory f, ref EncryptionService es)
        {
            factory = f;
            ES      = es;
            Thread _MessagesUpdate = new Thread(Run);

            _MessagesUpdate.Start();
        }
Exemplo n.º 7
0
 public void CreateConversation(ConversationType type = ConversationType.Group, List <ConversationUser> Attendees = null)
 {
     if (Attendees == null)
     {
         Attendees = Contacts.Select(x => x.ConversationUser).ToList();
     }
     Attendees.Add(ConversationUser);
     var conversation = ConversationFactory.BuildConversation(type, Attendees);
 }
        public UserKeysUpdateThread(ConversationFactory f)
        {
            factory = f;
            Thread _UserUpdate = new Thread(RunUsersUpdate);
            Thread _KeysUpdate = new Thread(RunKeysUpdate);

            _UserUpdate.Start();
            _KeysUpdate.Start();
        }
Exemplo n.º 9
0
 void CreateInitial()
 {
     doll.character = this;
     doll.DetermineStats();
     speech = ConversationFactory.AddDefaultConversation(unitName);
     nav    = GetComponent <NavMeshAgent>();
     unitID = Guid.NewGuid();
     GameWorldReferenceClass.GW_listOfAllUnits.Add(this);
 }
Exemplo n.º 10
0
    void Awake()
    {
        Instance = this;

        IDToConversation = new Hashtable();

        foreach (string conversation in conversations)
        {
            ConversationLoader.LoadConversation(conversation);
        }
    }
Exemplo n.º 11
0
    void CreateInitial()
    {
        doll.character = this;
        doll.DetermineStats();
        speech = ConversationFactory.AddDefaultConversation(unitName);
        unitID = Guid.NewGuid();
        GameWorldReferenceClass.GW_listOfAllUnits.Add(this);
        //cTalents.PlaceRune(1, new SimpleTalent() { modifier = new ModifierGroup() { Stat = ModifierGroup.eStat.MoveSpeed, Aspect = ModifierGroup.eAspect.Movement, Method = ModifierGroup.eMethod.MultiplyPercent, Value = 2 } });
        InventoryItem item = new InventoryItem()
        {
            itemID = 1, itemName = "Night Shale", itemType = ItemType.Consumable, healAmount = 35, maxCharges = 2, currentCharges = 2, usable = true, usableItem = new ConsumabeHealItemUse()
        };

        charInventory.AddItem(item);
        SetQuickItem(0);
        RefreshStats();
    }
Exemplo n.º 12
0
 /// <summary>
 /// This method sets the factory for the conversation
 /// </summary>
 /// <param name="factory"></param>
 public void SetFactory(ConversationFactory factory)
 {
     _conversationFactory = factory;
 }
Exemplo n.º 13
0
 public AppWorker(ConversationFactory factory)
 {
     commFacility = new CommFacility(this, factory);
     _keepGoing   = false;
 }
        // Token: 0x060015BF RID: 5567 RVA: 0x0004DD44 File Offset: 0x0004BF44
        protected override FindFlowConversationItemResponse InternalExecute()
        {
            QueryFilter         flowConversationFilter = GetFlowConversation.GetFlowConversationFilter(this.folderId, base.MailboxIdentityMailboxSession);
            IdAndSession        folderIdAndSession     = GetFlowConversation.GetFolderIdAndSession(this.folderId, base.MailboxIdentityMailboxSession, base.IdConverter);
            SortBy              sortBy = new SortBy(ItemSchema.ReceivedTime, SortOrder.Descending);
            List <FlowItem>     list   = new List <FlowItem>();
            ConversationFactory conversationFactory = new ConversationFactory(base.MailboxIdentityMailboxSession);

            using (Folder folder = Folder.Bind((MailboxSession)folderIdAndSession.Session, folderIdAndSession.Id))
            {
                using (QueryResult queryResult = folder.ItemQuery(ItemQueryType.None, flowConversationFilter, new SortBy[]
                {
                    sortBy
                }, FindFlowConversationItem.requiredProperties))
                {
                    IStorePropertyBag[] propertyBags = queryResult.GetPropertyBags(10000);
                    foreach (IStorePropertyBag storePropertyBag in propertyBags)
                    {
                        if ((long)list.Count == this.requestedItemCount)
                        {
                            break;
                        }
                        string text = this.GenerateParticipantsHash(storePropertyBag);
                        if (text.Equals(this.flowConversationId))
                        {
                            FlowItem       flowItem        = new FlowItem();
                            ExDateTime     valueOrDefault  = storePropertyBag.GetValueOrDefault <ExDateTime>(ItemSchema.ReceivedTime, ExDateTime.Now);
                            bool           valueOrDefault2 = storePropertyBag.GetValueOrDefault <bool>(MessageItemSchema.IsRead, true);
                            IParticipant   valueOrDefault3 = storePropertyBag.GetValueOrDefault <IParticipant>(ItemSchema.From, null);
                            VersionedId    valueOrDefault4 = storePropertyBag.GetValueOrDefault <VersionedId>(ItemSchema.Id, null);
                            ConversationId valueOrDefault5 = storePropertyBag.GetValueOrDefault <ConversationId>(ItemSchema.ConversationId, null);
                            flowItem.ItemId          = IdConverter.ConvertStoreItemIdToItemId(valueOrDefault4, base.MailboxIdentityMailboxSession);
                            flowItem.Sender          = FindFlowConversationItem.ConvertParticipantToEmailAddressWrapper(valueOrDefault3);
                            flowItem.IsRead          = valueOrDefault2;
                            flowItem.ReceivedTimeUtc = ExDateTimeConverter.ToSoapHeaderTimeZoneRelatedXsdDateTime(valueOrDefault);
                            Conversation key = conversationFactory.CreateConversation(valueOrDefault5, FindFlowConversationItem.ConversationCreatorRelevantProperties);
                            if (!this.conversationMap.ContainsKey(key))
                            {
                                this.conversationMap[key] = new List <StoreObjectId>();
                            }
                            this.conversationMap[key].Add(valueOrDefault4.ObjectId);
                            this.flowItemsMap[valueOrDefault4.ObjectId] = flowItem;
                            list.Add(flowItem);
                        }
                    }
                }
            }
            foreach (KeyValuePair <Conversation, List <StoreObjectId> > keyValuePair in this.conversationMap)
            {
                Conversation         key2  = keyValuePair.Key;
                List <StoreObjectId> value = keyValuePair.Value;
                key2.LoadItemParts(value);
                foreach (StoreObjectId storeObjectId in value)
                {
                    ItemPart itemPart = key2.GetItemPart(storeObjectId);
                    this.flowItemsMap[storeObjectId].ItemBody = itemPart.BodyPart;
                }
            }
            return(new FindFlowConversationItemResponse
            {
                Items = list.ToArray()
            });
        }
Exemplo n.º 15
0
        public static Conversation Load(MailboxSession session, ConversationId conversationId, IList <StoreObjectId> folderIds, bool useFolderIdsAsExclusionList, bool isIrmEnabled, params PropertyDefinition[] propertyDefinitions)
        {
            ConversationFactory conversationFactory = new ConversationFactory(session);

            return(conversationFactory.CreateConversation(conversationId, folderIds, useFolderIdsAsExclusionList, isIrmEnabled, propertyDefinitions));
        }
Exemplo n.º 16
0
 public virtual Conversation Acquire()
 {
     return(ConversationFactory.newInstance());
 }
Exemplo n.º 17
0
 public void GetSpeech()
 {
     speech = ConversationFactory.LoadSpeech(unitName, speech.speechStage);
 }