Ejemplo n.º 1
0
        internal void HandleLocalDoIChanged(object sender, EventArgs e)
        {
            string serializedDoI = StringSerialization.SerializeObject <IDomainOfInterest>(ServerSync.LocalServer.DoI);

            foreach (var server in ServerSync.RemoteServers)
            {
                server.Connection["serverSync.updateDoI"](serializedDoI);
            }
        }
Ejemplo n.º 2
0
        internal void HandleLocalDoRChanged(object sender, EventArgs e)
        {
            string serializedDoR = StringSerialization.SerializeObject <IDomainOfResponsibility>(
                ServerSync.LocalServer.DoR);

            foreach (var server in ServerSync.RemoteServers)
            {
                server.Connection["serverSync.updateDoR"](serializedDoR);
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Returns serialized DoR for this server.
 /// </summary>
 /// <returns>Serialized DoR.</returns>
 string GetDoR()
 {
     return(StringSerialization.SerializeObject <IDomainOfResponsibility>(ServerSync.LocalServer.DoR));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Returns serialized DoI for this server.
 /// </summary>
 /// <returns>Serialized DoI.</returns>
 string GetDoI()
 {
     return(StringSerialization.SerializeObject <IDomainOfInterest>(ServerSync.LocalServer.DoI));
 }