示例#1
0
 private static Func <ISession <PrivateAuthentication>, ITest, Task <IReadOnlyDictionary <ulong, OptionDataCollection> > > ReadOptions(string optionFullAlias)
 {
     return(async(session, test) =>
     {
         return (await session.CallAsync((GetOptionRequest.Builder().SelectDefault() as GetOptionRequest.IBuilderWithSelect).WhereName(optionFullAlias))).OptionData;
     });
 }
        private ulong GetOptionIdByAlias(string optionAlias, ISession <PrivateAuthentication> session)
        {
            var getOptionRequest = (GetOptionRequest.Builder().SelectDefault() as GetOptionRequest.IBuilderWithSelect).WhereName(optionAlias);
            var result           = session.Call(getOptionRequest);

            return(result.OptionData.Single().Key);
        }