protected override async Task OnParametersSetAsync() { if (Name == null) { return; } DbConfig = BusService !.FindByName(Name); if (DbConfig == null) { isNotNew = false; Config = new RigConf(); } else { isNotNew = true; Config = JsonSerializer.Deserialize <RigConf>(DbConfig.Configuration); Config.DataBits = 7; } StateHasChanged(); if (EC == null) { EC = new EditContext(Config); } EC.Validate(); }
public override InfosAssignation find(string nom) { InfosAssignation IA = null; using (SqlCommand command_f = new SqlCommand("SELECT id, nom, id_ec, id_typecours, id_enseignant, nb_heures FROM infos_assignation WHERE nom='" + nom + "';", Connexion.getInstance())) { using (SqlDataReader reader_f = command_f.ExecuteReader()) { if (reader_f.HasRows) { while (reader_f.Read()) { AbstractDAOFactory factoSQL = AbstractDAOFactory.getFactory(types.SQL_FACTORY); DAO <EC> TPSQLEC = factoSQL.getECDAO(); DAO <TypeCours> TPSQLTP = factoSQL.getTypeCoursDao(); DAO <Enseignant> TPSQLEns = factoSQL.getEnseignantDAO(); EC ec = TPSQLEC.find(reader_f.GetInt32(2)); TypeCours tp = TPSQLTP.find(reader_f.GetInt32(3)); Enseignant ens = TPSQLEns.find(reader_f.GetInt32(4)); IA = new InfosAssignation(reader_f.GetInt32(0), reader_f.GetString(1), ec, tp, ens, reader_f.GetDouble(5)); } } reader_f.Close(); } // Connexion.getInstance().Close(); return(IA); } }
private static float ComboDamage(Obj_AI_Base hero) { var dmg = 0d; if (ObjectManager.Player.GetSpellSlot("SummonerIgnite") != SpellSlot.Unknown) { dmg += Player.GetSummonerSpellDamage(hero, Damage.SummonerSpell.Ignite); } if (Items.HasItem(3153) && Items.CanUseItem(3153)) { dmg += Player.GetItemDamage(hero, Damage.DamageItems.Botrk); } if (Items.HasItem(3144) && Items.CanUseItem(3144)) { dmg += Player.GetItemDamage(hero, Damage.DamageItems.Bilgewater); } if (QC.IsReady()) { dmg += Player.GetSpellDamage(hero, SpellSlot.Q); } if (EC.IsReady()) { dmg += Player.GetSpellDamage(hero, SpellSlot.E); } if (WC.IsReady()) { dmg += Player.GetSpellDamage(hero, SpellSlot.W); } if (Q.IsReady() && !IsCougar) { dmg += Player.GetSpellDamage(hero, SpellSlot.Q); } return((float)dmg); }
public override List <InfosAssignation> findAll() { List <InfosAssignation> IAs = new List <InfosAssignation>(); using (SqlCommand command_f = new SqlCommand("SELECT * FROM infos_assignation;", Connexion.getInstance())) { using (SqlDataReader reader_f = command_f.ExecuteReader()) { if (reader_f.HasRows) { while (reader_f.Read()) { AbstractDAOFactory factoSQL = AbstractDAOFactory.getFactory(types.SQL_FACTORY); DAO <EC> TPSQLEC = factoSQL.getECDAO(); DAO <TypeCours> TPSQLTP = factoSQL.getTypeCoursDao(); DAO <Enseignant> TPSQLEns = factoSQL.getEnseignantDAO(); EC ec = TPSQLEC.find(reader_f.GetInt32(2)); TypeCours tp = reader_f.IsDBNull(3) ? default(TypeCours) : TPSQLTP.find(reader_f.GetInt32(3)); Enseignant ens = reader_f.IsDBNull(4) ? default(Enseignant) : TPSQLEns.find(reader_f.GetInt32(4)); IAs.Add(new InfosAssignation(reader_f.GetInt32(0), reader_f.GetString(1), ec, tp, ens, reader_f.GetDouble(5))); } } } } return(IAs); }
private static void Farm() { foreach ( Obj_AI_Minion Minion in ObjectManager.Get<Obj_AI_Minion>() .Where( minion => minion.Team != Player.Team && !minion.IsDead && Vector2.Distance(minion.ServerPosition.To2D(), Player.ServerPosition.To2D()) < 600f) .OrderBy(minion => Vector2.Distance(minion.Position.To2D(), Player.Position.To2D()))) { if (IsCougar) { if (QC.IsReady() && Config.Item("UseQLane").GetValue<bool>() && Player.Distance(Minion) < QC.Range) QC.Cast(); else if (WC.IsReady() && Config.Item("UseWLane").GetValue<bool>() && Player.Distance(Minion) > 200f) WC.Cast(Minion); else if (EC.IsReady() && Config.Item("UseELane").GetValue<bool>() && Player.Distance(Minion) < EC.Range) EC.Cast(Minion); } else if (R.IsReady() && Config.Item("farm_R").GetValue<KeyBind>().Active) R.Cast(); else if (E.IsReady() && !Config.Item("farm_R").GetValue<KeyBind>().Active && Config.Item("farm_E1").GetValue<bool>() && (100*(Player.Mana/Player.MaxMana)) > Config.Item("Lane").GetValue<Slider>().Value) E.CastOnUnit(Player); return; } }
public override void UpdateLogic() { //每帧判断玩家与本单位的距离,判断是否可以射击 //PlayerRobotContral prc = GameObject.FindObjectOfType<PlayerRobotContral>(); if (Mathf.Abs(Vector2.Distance(EC.transform.position, prc.transform.position)) < AttentionDistence) { if (!IsShootCD) { Attack(prc.transform.position); EC.StartCoroutine(WaiteForShootCD()); } } if (!IsMoveCD) { //随机找一点,要求在靠近玩家 float pos_x; float pos_y; if (transform.position.x - prc.transform.position.x > 0) { pos_x = UnityEngine.Random.Range(-MoveDistance, 0); pos_y = UnityEngine.Random.Range(-MoveDistance, MoveDistance); } else { pos_x = UnityEngine.Random.Range(0, MoveDistance); pos_y = UnityEngine.Random.Range(-MoveDistance, MoveDistance); } Vector2 target = new Vector2(transform.position.x + pos_x, transform.position.y + pos_y); // Debug.Log(target); Move(target, EC.ER.MoveSpeed); } }
// AI Method End public void ClearDZ(int Mode) { for (int i = 0; i < hands.Count; i++) { if (Mode == 1) { foreach (AmourCard AC in dzones[i].SpecificUseCards) { AC.GetComponent <Dragable>().returnParent = Discard.transform; AC.transform.SetParent(Discard.transform); AC.gameObject.GetComponent <Image>().sprite = AC.GetComponent <AdventureCard>().cardBack; Discard.cards.Add(AC); } dzones[i].SpecificUseCards.Clear(); } foreach (EquipmentCard EC in dzones[i].Equipment) { EC.GetComponent <Dragable>().returnParent = Discard.transform; EC.transform.SetParent(Discard.transform); EC.gameObject.GetComponent <Image>().sprite = EC.GetComponent <AdventureCard>().cardBack; Discard.cards.Add(EC); } dzones[i].Equipment.Clear(); } }
//clears drop zones between stages //allies remain from stage to stage // pass in a 1 it clears everything, pass in 0 it only clears equipment public void ClearDropZones(int Mode) { for (int i = 0; i < dzones.Count; i++) { if (Mode == 1) { foreach (AmourCard AC in dzones[i].SpecificUseCards) { AC.GetComponent <Dragable>().returnParent = Discard.transform; AC.transform.SetParent(Discard.transform); AC.gameObject.GetComponent <Image>().sprite = AC.GetComponent <AdventureCard>().cardBack; Discard.cards.Add(AC); } dzones[i].SpecificUseCards.Clear(); } foreach (EquipmentCard EC in dzones[i].Equipment) { EC.GetComponent <Dragable>().returnParent = Discard.transform; EC.transform.SetParent(Discard.transform); EC.gameObject.GetComponent <Image>().sprite = EC.GetComponent <AdventureCard>().cardBack; Discard.cards.Add(EC); } dzones[i].Equipment.Clear(); HandleTextFile.WriteLog((Controler.LogLine += 1) + " Clearing cards from Dropzone of player" + (i + 1) + " #BNF-19", Controler.SName); } }
private static void Farm() { var target = SimpleTs.GetTarget(QC.Range, SimpleTs.DamageType.Magical); var allminions = MinionManager.GetMinions(Player.ServerPosition, Q.Range, MinionTypes.All, MinionTeam.Enemy, MinionOrderTypes.Health); if (Config.Item("UseQLane").GetValue <bool>()) { if (IsHuman) { R.Cast(); } foreach (var minion in allminions) { if (QC.IsReady() && minion.IsValidTarget() && Player.Distance(minion) <= QC.Range) { QC.Cast(minion); } if (WC.IsReady() && minion.IsValidTarget() && Player.Distance(minion) <= WC.Range) { WC.Cast(minion); } if (EC.IsReady() && minion.IsValidTarget() && Player.Distance(minion) <= EC.Range) { EC.Cast(minion); } } } }
private ObservableCollectionExt <EC> GetECs(Enseignement enseignementSelectionne) { ObservableCollectionExt <EC> ECs = new ObservableCollectionExt <EC>(); foreach (EC ec in EC.findAll()) { if (enseignementSelectionne.Id == ec.Enseignement.Id) { EC nouveauEC = new EC { Id = ec.Id, Nom = ec.Nom.TrimEnd(), Enseignement = ec.Enseignement, Children = new ObservableCollectionExt <ObjetBase>(), Visibility = true }; ECs.Add(nouveauEC); foreach (InfosAssignation ia in InfosAssignation.findAll()) { if (ec.Id == ia.EC.Id) { Enseignant enseignant = null; if (!(ia.Enseignant is null)) { enseignant = enseignementSelect.ListView.Where(x => x.Id == ia.Enseignant.Id).FirstOrDefault(); } nouveauEC.Children.Add(new InfosAssignation { Id = ia.Id, Nom = ia.Nom.TrimEnd(), EC = ia.EC, Enseignant = enseignant, TypeCours = ia.TypeCours, NbHeures = ia.NbHeures, Children = tCs, Enseignants = enseignementSelect.ListView, Parent = nouveauEC }); } } } } return(ECs); }
private void TabEC_Click(object sender, RoutedEventArgs e) { EC nouvelEc = new EC { Nom = "Nouvel EC", Enseignement = enseignementSelect }; EC.create(nouvelEc); ECs.Add(nouvelEc); }
public override string GetHtml() { string _html = string.Empty; foreach (EbControl EC in this.Controls) { _html += EC.GetHtml(); } return(_html); }
public void OnSay(EC.ISession session, Chat.Say e) { e.Name = session.Channel.Name; e.From = session.Channel.EndPoint.ToString(); foreach (Beetle.Express.IChannel other in session.Application.Server.GetOnlines()) { if (other != session.Channel) session.Application.Server.Send(e, other); } }
IEnumerator SpawnFirstWaveTest() { yield return(new WaitForSeconds(0.5f)); ES.SpawnEnemies(SpawnMethod.InJail, EnemyType.Squid, BehaviourType.RandomMovement, numEnemies: 5); ES.SpawnEnemies(SpawnMethod.Random, EnemyType.Squid, BehaviourType.SeekDoors, numEnemies: Doors.Count); ES.SpawnEnemies(SpawnMethod.Random, EnemyType.Starfish, numEnemies: 1); EC.StartEnemyUpdateCycle(); UpdateScore(); }
public override void Enter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { EC.ChangeLayer2Default(); if (EC.Drop) { int DropNum = Random.Range(EC.DropMin, EC.DropMax); for (int i = 0; i < DropNum; i++) { Instantiate(EC.Drop, tra.position + new Vector3(Random.value, Random.value, 0), Quaternion.identity); } } }
private void AjouterInfosAssignation_Button(object sender, RoutedEventArgs e) { var source = (FrameworkElement)e.OriginalSource; ecSelect = (EC)source.DataContext; InfosAssignation nouvelleInfosAssignation = new InfosAssignation { Nom = "Nouveau cours", EC = ecSelect, Enseignant = null, TypeCours = null, NbHeures = 0, Children = tCs, Enseignants = enseignementSelect.ListView }; InfosAssignation.create(nouvelleInfosAssignation); ecSelect.Children.Add(nouvelleInfosAssignation); }
public async void navigateto(EC.Model.MenuItem menu) { if (menu == null) return; Page displayPage = (Page)Activator.CreateInstance(menu.TargetType); if(menu.TargetType== typeof(HomeTabs)) Detail = new NavigationPage(displayPage); else await Detail.Navigation.PushAsync(displayPage); IsPresented = false; }
public override void Execute(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { time = animator.GetFloat("InStateTimer"); if (time > EnableTime && time < DisableTime && !Enabled) { EC.ColliderEnable(AttackNum); Enabled = true; } if (time > DisableTime && Enabled) { EC.ColliderUnable(AttackNum); Enabled = false; } }
private void lstEmergenciesFetch(string state, List <Emergency> ExistingEmergencies) { lstEmergencies.Items.Clear(); foreach (Emergency iEmergency in ExistingEmergencies) { int j = 0; if (iEmergency.GetLinkedCalls()[0].GetState() != state) { continue; } foreach (Emergency_Call EC in iEmergency.GetLinkedCalls()) { if (EC == null) { break; } if (j == 0) { ListViewItem lstItem = new ListViewItem(iEmergency.GetEmergency_ID().ToString()); lstItem.SubItems.Add(EC.GetDateTime().ToString("h:mm:ss MM/dd/yyyy ")); lstItem.SubItems.Add(EC.GetPriority().ToString()); lstItem.SubItems.Add(EC.GetState()); lstItem.SubItems.Add(EC.GetDescription()); lstEmergencies.Items.AddRange(new ListViewItem[1] { lstItem }); } else { ListViewItem lstItem = new ListViewItem(); lstItem.SubItems.Add(EC.GetDateTime().ToString("h:mm:ss MM/dd/yyyy ")); lstItem.SubItems.Add(EC.GetPriority().ToString()); lstItem.SubItems.Add(EC.GetState()); lstItem.SubItems.Add(EC.GetDescription()); lstEmergencies.Items.AddRange(new ListViewItem[1] { lstItem }); } j++; } } }
public void Init(EC.IApplication application) { application.Disconnected += (o, e) => { Beetle.Express.IChannel channel = e.Session.Channel; Chat.Signout msg = new Signout(); msg.Name = channel.Name; msg.From = channel.EndPoint.ToString(); foreach (Beetle.Express.IChannel other in application.Server.GetOnlines()) { if (other != channel) application.Server.Send(msg, other); } }; }
public void OnLoad() { Loading = true; LoadIndex = -1; FinalText = ""; FinalChoices = new List <Choice>(); FinalEventChoices = new List <EventChoice>(); foreach (TextBlock TB in Blocks) { if (TB.Active()) { FinalText += TB.Content; } } foreach (Choice C in Choices) { if (C.Active()) { FinalChoices.Add(C); } } foreach (EventChoice EC in EventChoices) { if (EC.Active()) { FinalEventChoices.Add(EC); } } foreach (VariableChange VC in Changes) { VC.Process(); } CurrentDelay = GetDelay() * 0.25f; CommandCheck(); IndexCheck(); foreach (UnitEffect UE in Effects) { UE.Effect(); } foreach (NextUnitOverride NUO in Overrides) { if (NUO.Active()) { NextUnit = NUO.GetUnit(); break; } } }
public override void Enter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { animator.SetBool("Death", true); EC.ChangeLayer2Default(); FindObjectOfType <MenuController4Boss>().Clear(); Debug.Log(GameObject.FindGameObjectWithTag("GameController"), GameObject.FindGameObjectWithTag("GameController")); GameObject.FindGameObjectWithTag("GameController").GetComponent <BoxCollider2D>().enabled = true; if (EC.Drop) { int DropNum = Random.Range(EC.DropMin, EC.DropMax); for (int i = 0; i < DropNum; i++) { Instantiate(EC.Drop, tra.position + new Vector3(5 * Random.value, 5 * Random.value, 0), Quaternion.identity); } } }
public void Check() { FramebufferErrorCode FEC; if ((FEC = GLf.CheckFramebufferStatus(FramebufferTarget.Framebuffer)) != FramebufferErrorCode.FramebufferComplete) { throw new Exception(FEC.ToString()); } ErrorCode EC; if ((EC = GL.GetError()) != ErrorCode.NoError) { throw new Exception(EC.ToString()); } }
public override void Move(Vector2 target, float speed) { //射线检测是否有障碍物 RaycastHit2D[] rh2d = Physics2D.RaycastAll(EC.transform.position, target, MoveDistance); //Debug.Log("开始移动"); foreach (var rh in rh2d) { if (rh.transform.gameObject.layer == 10 || rh.transform.gameObject.layer == 12) { target = (Vector2)EC.transform.position + target.normalized * (Vector2.Distance(EC.transform.position, rh.point) - 1); EC.StartCoroutine(WaiteForMoveCD(target, speed)); break; } } EC.StartCoroutine(WaiteForMoveCD(target, speed)); }
private void TextBoxEC_KeyDown(object sender, KeyRoutedEventArgs e) { TextBox textBox = sender as TextBox; var source = (FrameworkElement)e.OriginalSource; ecSelect = (EC)source.DataContext; if (e.Key == VirtualKey.Enter) { if (!string.IsNullOrEmpty(textBox.Text)) { ecSelect.Nom = textBox.Text; EC.update(ecSelect.Id, ecSelect); } ecSelect.Visibility = true; } }
///TODO: Change the invoke params to support normal Exception public static void ReportException(object sender, ThreadExceptionEventArgs e) { //mission critical exception, show console to user for reporting SessionManager.SMptr.Opacity = 100; SessionManager.SMptr.Show(); EC ecn = new EC { EDesc = "APPLICATION EXCEPTION - " + e.GetType().Name, ETime = DateTime.Now, EType = "Fatal" }; EDict.Add(ecn); ReportEx("APPLICATION CRITICAL EXCEPTION DIFFUSED", RType.ERROR, Color.Red, false, false, false, true); ReportEx("EX-> " + e.Exception.Message, RType.ERROR, RTC[3], false, false, false, true); ReportEx(e.Exception.StackTrace, RType.ERROR, RTC[3], false, false, false, true); SessionManager.SMptr.ErrorDisplay.Text = EDict.Count + " Errors"; }
public override void UpdateLogic() { if (Mathf.Abs(Vector2.Distance(EC.transform.position, prc.transform.position)) <= AttentionDistence) { if (!IsShootCD) { Attack(prc.transform.position); EC.StartCoroutine(WaiteForShootCD()); } if (!IsMoveCD) { //直接靠近玩家 Vector2 target = prc.transform.position + (transform.position - prc.transform.position).normalized * (ButtleFlyDistance - 1f); Move(target, EC.ER.MoveSpeed); } } }
/// <summary> /// Gets the ICalculableRow Interface to the Row that this DGV cell is binded to /// </summary> /// <returns></returns> public ICalculableRow GetICalculable(int rowIndex) { ICalculableRow Icalc = null; if (rowIndex <= -1) { return(Icalc); } DataGridViewRow r = this.DataGridView.Rows[rowIndex]; DataRowView v = r?.DataBoundItem as DataRowView; DataRow u = (v?.Row) as DataRow; if (!EC.IsNuDelDetch(u)) { Icalc = u as ICalculableRow; } return(Icalc); }
public static void ReportEx(string InboundText, RType ReportType = (RType)2, Color BaseColor = new Color(), bool Time = true, bool Tag = true, bool Append = false, bool IgnoreError = false) { //initialize RichTextBox stdout = SessionManager.SMptr.Log; DateTime reporttime = DateTime.Now; if (ReportType == RType.ERROR && IgnoreError == false) { EC ecn = new EC { EDesc = InboundText, ETime = reporttime, EType = "Error" }; EDict.Add(ecn); SessionManager.SMptr.ErrorDisplay.Text = EDict.Count + " Errors"; } stdout.SuspendLayout(); //begin print if (Append == false) { stdout.AppendText(Environment.NewLine); } //PRINT TIME if (Time) { stdout.SelectionColor = RTC[1]; stdout.AppendText("[" + reporttime.ToString("H:mm:ss") + "] "); } //PRINT REPORT TYPE if (Tag) { stdout.SelectionColor = (int)ReportType == -1 ? Color.Purple : RTC[Math.Abs((int)ReportType)]; stdout.AppendText("[" + ReportType.ToString() + "] "); } stdout.SelectionColor = (BaseColor.IsEmpty) ? RTC[1] : BaseColor; stdout.AppendText(InboundText); stdout.ScrollToCaret(); stdout.ResumeLayout(); Console.WriteLine(InboundText); }
void OnTriggerStay(Collider other) { if (other.gameObject.tag == Tags.heroes) { Vector3 direction = other.transform.position - transform.position; float angle = Vector3.Angle(direction, transform.forward); if (angle < fieldOfViewAngle * 0.5f) { RaycastHit hit; if (Physics.Raycast(transform.position + transform.up, direction.normalized, out hit, col.radius)) { if (hit.collider.gameObject.tag == Tags.heroes) { EC.ISeeHero(this, other.gameObject); } } } } }
//clears the quest zone after a quest is over so it's ready to use for another quest public void ClearQzones() { for (int i = 0; i < qzones.Count; i++) { foreach (FoeCard FC in qzones[i].ControledFoes) { FC.GetComponent <Dragable>().returnParent = hands[turn].transform; FC.transform.SetParent(Discard.transform); Discard.cards.Add(FC); } qzones[i].ControledFoes.Clear(); foreach (EquipmentCard EC in qzones[i].Equipment) { EC.GetComponent <Dragable>().returnParent = hands[turn].transform; EC.transform.SetParent(Discard.transform); Discard.cards.Add(EC); } qzones[i].Equipment.Clear(); } }
public void ResetSponsorQzones() { for (int i = 0; i < questCard.numberOfStages; i++) { foreach (FoeCard FC in qzones[i].ControledFoes) { FC.GetComponent <Dragable>().returnParent = hands[turn].transform; FC.transform.SetParent(hands[turn].transform); hands[turn].cards.Add(FC); } foreach (EquipmentCard EC in qzones[i].Equipment) { EC.GetComponent <Dragable>().returnParent = hands[turn].transform; EC.transform.SetParent(hands[turn].transform); hands[turn].cards.Add(EC); } qzones[i].ControledFoes.Clear(); qzones[i].Equipment.Clear(); } Debug.Log("Not a Valid Quest Set Up!!!!"); }
public override void Enter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { float x = animator.GetFloat("PosDifX"); float y = animator.GetFloat("PosDifY"); dif = new Vector2(x, y); dif = dif.normalized; if (dif.x == 0 && dif.y == 0) { dif = Vector2.right; } if (dif.x > 0) { EC.Direction2Zero(); } else { EC.Direction2Opposite(); } }
public void Init(EC.IApplication application) { Application = application; application.Disconnected += (o, e) => { Interfaces.IUserAgent agent = (Interfaces.IUserAgent)e.Session[SESSION_KEY.USER]; if (agent != null) { if (agent.Room != null) agent.Room.Exit(agent); agent.Session = null; } e.Session[SESSION_KEY.USER] = null; }; application.Connected += (o, e) => { }; application.Error += (o, e) => { "{0} error {1}".Log4Error(e.Info.Error, "", ""); }; }
public void GetRoom(EC.ISession session, Protocol.GetRoom e) { mDispatchFactory.Route(CreateToken(e, session)); }
public void GameAction(EC.ISession session, Protocol.GameAciton e) { mDispatchFactory.Route(CreateToken(e, session)); }
private Interfaces.IUserAgent GetAgent(EC.ISession session) { return (Interfaces.IUserAgent)session[SESSION_KEY.USER]; }
private Dispatch.MessageToken CreateToken(Protocol.IMessage message, EC.ISession session) { IUserAgent agent = (IUserAgent)session[SESSION_KEY.USER]; if (agent == null) { Console.WriteLine(session.Channel.Status); } return new Dispatch.MessageToken { Message = message, UserAgent =agent, Server=this, Session= session}; }
public void Talk(EC.ISession session, Protocol.Talk e) { mDispatchFactory.Route(CreateToken(e, session)); }
public void SelectDesk(EC.ISession session, Protocol.SelectDesk e) { mDispatchFactory.Route(CreateToken(e, session)); }
/// <summary> /// Calls EVP_PKEY_assign() /// </summary> /// <param name="key">Key.</param> public void Assign(EC.Key key) { key.AddRef(); Native.ExpectSuccess(Native.EVP_PKEY_assign(ptr, (int)KeyType.EC, key.Handle)); }
/// <summary> /// Calls EVP_PKEY_set1_EC() /// </summary> /// <param name="ec"></param> public CryptoKey(EC.Key ec) : this() { Native.ExpectSuccess(Native.EVP_PKEY_set1_EC_KEY(ptr, ec.Handle)); }
public UserAgent(Interfaces.Data.Model.User user,EC.ISession session) { Name = user.Name; ID = user.ID; Session = session; }
public void Login(EC.ISession session, Protocol.Login e) { mDispatchFactory.Route(CreateToken(e,session)); }