Exemplo n.º 1
0
        public static OffnetServKeyPair FromString(string text)
        {
            int index = text.IndexOf('=');
            var sk    = new OffnetServKeyPair()
            {
                Name    = text.Substring(0, index - 1),
                Service = OffnetServiceKeyWeb.FromString(text.Substring(index + 1))
            };

            return(sk);
        }
Exemplo n.º 2
0
 public PartnerServPkg(PartnerServicePackage pkg)
 {
     Partner = pkg.Partner;
     IsValid = true;
     if (pkg.Services != null)
     {
         Services = new OffnetServKeyPair[pkg.Services.Count];
         var i = 0;
         foreach (var pair in pkg.Services)
         {
             Services[i++] = new OffnetServKeyPair(pair.Key, pair.Value.ToWeb());
         }
     }
 }