Beispiel #1
0
        public static Remote NewRemoteFrom(
            Guid id,
            RemoteName remoteName)
        {
            var remote = new Remote(id, remoteName);

            remote.ApplyChange(new RemoteCreated(remote.Id, remoteName));
            return(remote);
        }
Beispiel #2
0
 public Remote(Guid id, RemoteName remoteName) : base(id)
 {
     RemoteName    = remoteName;
     _analogPoints = new Analogs(id);
 }